Re: Naive question about the image directive

Roberto Alsina <[email protected]>
Newsgroups gmane.text.docutils.user
Message-ID <CALXDAfrWneiTQuLcqK5YXLSAmSs0g6FEE1+QN=Hi3nbF6W=dRA@mail.gmail.com>
If you are going to use relative URLs, they need to be relative to where
the HTML page resides, not to where the rst text is.

So, if your page ends at http://foo.bar/boo/this.html with a relative URL
to the image of "DSCF6584.JPG" then the image better be available at
http://foo/bar/boo/DSCF6584.JPG or it will not work.


On Mon, Jan 23, 2017 at 12:59 PM Chris Green <[email protected]> wrote:

> > >
> > OK, thanks, I'll try a bit more.
> >
> OK, I've been trying some more!  :-)
>
> I can get the following to work:-
>
> .. image:: http://esprimo/mandyFlat/DSCF6584.JPG
>
>
> I can't get anything like this to work at all:-
>
> .. image:: DSCF6584.JPG
>
> (yes, I have copied the JPG file to the directory where the rst text is)
>
>
> The code it generates is:-
>
>     <img alt="DSCF6584.JPG" src="DSCF6584.JPG" />
>
> which is sort of alright except that, presumably, the web server
> (apache2) can't actually find the image with just that as the address.
> I guess the problem is down to the fact that the page is generated
> dynamically.
>
> --
> Chris Green
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Docutils-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/docutils-users
>
> Please use "Reply All" to reply to the list.
>

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.