How to include an image?

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
accampbell
Regular
Posts: 138
Joined: Fri Jun 09, 2006 8:59 pm
Location: London, UK
Contact:

How to include an image?

Post 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?
Anthony Campbell
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: How to include an image?

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
judebert
Regular
Posts: 2478
Joined: Sat Oct 15, 2005 6:57 am
Location: Orlando, FL
Contact:

Post 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.
Judebert
---
Website | Wishlist | PayPal
accampbell
Regular
Posts: 138
Joined: Fri Jun 09, 2006 8:59 pm
Location: London, UK
Contact:

Post 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.
Anthony Campbell
Post Reply