Click here to get back home

hyperlinks to jpeg image fail on new server

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
hyperlinks to jpeg image fail on new server J(ohn|ane) Doe 12-02-2007
Posted by J(ohn|ane) Doe on December 2, 2007, 6:51 am
Please log in for more thread options
I have many webpages with thumbnail pictures.
Each thumbnail is a hyperlink to a large picture.
The HTML code is similar to this:
[a href="full/full01.jpg"][img src="thumb/thumb01.jpg"][/a]

Now this worked okay on my old server. I got a new webhost,
and now when somebody clicks on thumbnail, they do not get
the full-size image. Whether you use IE, Mozilla or whatever,
same problem. Everything else seems okay on new server.
e.g. the images in IMG tag display always.
When I click on a thumbnail and get a browser window lacking
the image, I tried page info. It shows type=image/jpeg and
the size in bytes and pixels. In fact all the properties are
the same as when I loaded the image from the old server
successfully. The browser options are set to load all images.
Actually I found one picture out of about 300 that did
display when I clicked on thumbnail. I can't see anything
different about HTML or the JPEG for this successful loner.
So could there be something misconfigured on my new server
that stops hyperlinked images from working?
If I type URL of the image into the browser (for old server)
then I saw the image. But when I type in the URL for the
new server, it returns a page which is simply one line of
text being the URL I gave, instead of the image, e.g.
http://61.14.166.63/~kerstins/images/No.149.jpg


Posted by Jukka K. Korpela on December 2, 2007, 7:10 am
Please log in for more thread options
Scripsit J(ohn|ane) Doe:

> [a href="full/full01.jpg"][img src="thumb/thumb01.jpg"][/a]

You have grossly invalid syntax.
<blink><marquee><font size="7">If your excuse for a newsreader
interprets HTML markup in Usenet messages, get a real newsreader.
</font></marquee></blink>

> http://61.14.166.63/~kerstins/images/No.149.jpg

Why does a forged name and an IP address instead of a domain name make
me suspicious? I guess it's just my twenty years or so with networking.

Anyway, longish babbling followed by the purported URL of an image, not
an HTML document, suggests that you cannot be helped (and you surely
don't deserve help).

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


Posted by Rob Waaijenberg on December 2, 2007, 7:37 am
Please log in for more thread options
J(ohn|ane) Doe schreef:
[snipped]
> If I type URL of the image into the browser (for old server)
> then I saw the image. But when I type in the URL for the
> new server, it returns a page which is simply one line of
> text being the URL I gave, instead of the image, e.g.
> http://61.14.166.63/~kerstins/images/No.149.jpg
>

Maybe you have to many dots in your images.names.

--
Rob

Posted by Jonathan N. Little on December 2, 2007, 10:19 am
Please log in for more thread options
Rob Waaijenberg wrote:
> J(ohn|ane) Doe schreef:
> [snipped]
>> If I type URL of the image into the browser (for old server)
>> then I saw the image. But when I type in the URL for the
>> new server, it returns a page which is simply one line of
>> text being the URL I gave, instead of the image, e.g.
>> http://61.14.166.63/~kerstins/images/No.149.jpg
>>
>
> Maybe you have to many dots in your images.names.
>

That would not matter, ypou could call the image 1.2.3.4.5.6.7.8.9.jpg
if you wish, "." are valid in a URL and the web does not use "extensions"

To OP, the problem with at least the above "No.149.jpg" is that it is
corrupted. You need to upload new copies...

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Posted by Ben C on December 2, 2007, 8:11 am
Please log in for more thread options
> I have many webpages with thumbnail pictures.
> Each thumbnail is a hyperlink to a large picture.
> The HTML code is similar to this:
> [a href="full/full01.jpg"][img src="thumb/thumb01.jpg"][/a]
>
[...]
> If I type URL of the image into the browser (for old server)
> then I saw the image. But when I type in the URL for the
> new server, it returns a page which is simply one line of
> text being the URL I gave, instead of the image, e.g.
> http://61.14.166.63/~kerstins/images/No.149.jpg

I think the actual image files are corrupted. I tried retrieving
No.149.jpg and got the file OK.

But if I try to open it with display or the Gimp, I get an error message
about a "Bogus marker length".

On casual inspection with a binary editor it does look roughly like a
jpg file-- it says "JFIF" and "Adobe" near the top.

It may be that somewhere along the line something thought it was a text
file and converted "line-endings" from LF to CRLF or vice versa. This is
a good way to mess up a binary file. The one image that worked might
have been lucky not to have any line-endings in it, or only in places
where they didn't matter.

What are you using to upload to the server? If it's ftp, you need to
make sure the "binary" option is set.

Similar ThreadsPosted
Scrolling .jpeg picture in HTML? August 10, 2004, 6:26 am
Why does named anchor fail? August 8, 2006, 8:44 pm
in Firefox March 19, 2008, 9:57 pm
Why does named anchor fail on first reference? July 6, 2006, 3:06 am
hyperlinks question July 21, 2004, 8:07 pm
help with url hyperlinks (question) February 22, 2005, 6:04 pm
Problems with tables and hyperlinks January 23, 2005, 2:02 pm
Two Questions on Link REL/REV and dead-end hyperlinks. December 19, 2005, 11:20 pm
Creating image maps with Adobe Illustrator or Image Ready. March 8, 2005, 12:42 pm
How to lauch an image editor when click on an image link ? November 8, 2004, 7:00 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap