473,387 Members | 1,771 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

hyperlinks to jpeg image fail on new server

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

Dec 2 '07 #1
3 2655
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
Dec 2 '07 #2
On 2007-12-02, J(ohn|ane) Doe <xo*@hermetix.orgwrote:
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.
Dec 2 '07 #3
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
Dec 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: frankenberry | last post by:
I have multi-page tiff files. I need to extract individual frames from the multi-page tiffs and save them as single-page tiffs. 95% of the time I receive multi-page tiffs containing 1 or more black...
3
by: bull.enteract | last post by:
Ok, I start off with a bitmap image. I encode it as a jpeg and send it across the network and pick it up on the other end. Now I have the jpeg image on the other end as an arrray of bytes and I...
16
by: David Lauberts | last post by:
Hi Wonder if someone has some words of wisdom. I have a access 2002 form that contains 2 graph objects that overlay each other and would like to export them as a JPEG to use in a presentation....
0
by: Johann Blake | last post by:
In my need to decode a JPEG 2000 file, I discovered like many that there was no functionality for this in the .NET Framework. Instead of forking out a pile of cash to do this, I came up with the...
3
by: RobertH | last post by:
Hello all. I have been hacking away trying to get a SQL image (jpeg) to render in a control or table row Without using the Response.BinaryWrite.... I think i might be on the verge but need a...
12
by: comp.lang.php | last post by:
index.php: // STUFF // STEP 1: imagecreatetruecolor ONLY IF GD 2.0+ SUPPORTED AND FOUND if ($this->isSuccessful && !$hasMogrified && $image && !$newImage &&...
1
by: Smokey Grindel | last post by:
I have a bitmap object I want to return as a JPEG image with a compression set at 90% and progressive passes enabled, how can I do this in .NET 2.0? Progressive passes are not necessary but the...
2
by: David Lozzi | last post by:
Howdy, I have a simple file uploader in a form, and I take the image and check for the file extension. Now I when upload a jpg image in FireFox the content type is image/jpeg. When I upload the...
11
by: Mark B | last post by:
I want to display a pre-designed graphical 'performance badge' on certain webpages (round, about 2cm diameter) next to a salesperson's details. I have a function,...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.