Page 1 of 1

How to include an image?

Posted: Wed Sep 06, 2006 12:26 pm
by accampbell
I want to include an image in a post. I clicked on the "IMG" button and got the <img src>line. So I made a directory on my site (blogpics) and uploaded the image (liver.gif) to that directory. I then had the line in the post:

<img src="http://www.acampbell.org.uk/blogpics/liver.gif" alt="Liver model" />

However, the image doesn't show up. What am I missing here? Or have I gone about it quite the wrong way?

Re: How to include an image?

Posted: Wed Sep 06, 2006 1:29 pm
by garvinhicking
Hi!

Hm, do you have the URL of that article where it does not show up? It should show up, the code seems right... (even though it would be easier to just upload the file to the serendipity mediatabase, and then use the "Media Image" button to insert it into postings *G*)

Best regards,
Garvin

Posted: Wed Sep 06, 2006 10:09 pm
by judebert
Actually, when I visit that GIF, I get an entire page with HTML and frames. It looks like your webserver is wrapping that image in other stuff.

The src attribute needs to reference a plain image file, or it won't show up in your browser.

Posted: Thu Sep 07, 2006 10:07 am
by accampbell
Thanks to garvin and judebert for replies. I've got it working now. The link I'd put in originally was to my domain name host. Oddly enough this brings up the picture when I access it from Firefox but it seems it doesn't work for judebert or for Serendipity. I therefore changed it to my actual site (http://www.ukfsn.org/blogpics/liver.gif) and then it shows up.