|
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.
|