#25 Support for remote image URIs in ODT writer

open
nobody
None
5
2011-05-04
2011-05-04
Anonymous
No

Currently if one use something in a rst file like:

.. image:: http://www.example.com/foo.png

And passes it to rst2odt, the image is not included in the document, showing instead the following warning:

(WARNING/2) Cannot find image file http://www.example.com/foo.png

It would be nice if the image could be fetched and included in the document. Currently rst2pdf does it by using urllib.urlretrieve if it detects a HTTP URI.

Discussion

  • Dave Kuhlman
    Dave Kuhlman
    2011-05-05

    This should be do-able. I'll look into it.

    - Dave

     
  • Dave Kuhlman
    Dave Kuhlman
    2011-05-12

    I have made a fix (and checked it into the SVN repository) so that files with name beginning with "http:" will be downloaded from the Web.