By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,995 Members | 1,079 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,995 IT Pros & Developers. It's quick & easy.

JPEG images sometimes don't display.

P: n/a
Good evening.

An HTML problem maybe, but one that I think can be solved with JavaScript.

I have a page which is supposed to display several small JPEG images using
elements like:

<image src="SmallImages/image1.jpeg" height="40" width="30"></image>

The image files are fine - I can open them reliably by double clicking in
Windows Explorer. But in a browser sometimes they display properly and
sometimes not and it's not always the same images that don't display.

I'm betting this behavior and its solution is well known to at least hard
core developers and I'd be quite appreciative if someone would give me a
hand.

Thank you,
Ron.


Jul 23 '05 #1
Share this Question
Share on Google+
6 Replies


P: n/a
It should be <img not <image. I don't know of any <image tag in HTML 4.01.

It would be best to state the browser you are using where this happens. I have seen this often
with virtually no explanation in Netscape and Mozilla.

It can be Network difficulties (slow) it could be the domain the images are from is being blocked
by your security (AV and the like).

--
George Hester
__________________________________
"Ron Brennan" <rb******@magma.ca> wrote in message news:v_********************@magma.ca...
Good evening.

An HTML problem maybe, but one that I think can be solved with JavaScript.

I have a page which is supposed to display several small JPEG images using
elements like:

<image src="SmallImages/image1.jpeg" height="40" width="30"></image>

The image files are fine - I can open them reliably by double clicking in
Windows Explorer. But in a browser sometimes they display properly and
sometimes not and it's not always the same images that don't display.

I'm betting this behavior and its solution is well known to at least hard
core developers and I'd be quite appreciative if someone would give me a
hand.

Thank you,
Ron.



Jul 23 '05 #2

P: n/a

"George Hester" <he********@hotmail.com> wrote in message
news:0B*********************@twister.nyroc.rr.com. ..
It should be <img not <image. I don't know of any <image tag in HTML 4.01.

It would be best to state the browser you are using where this happens. I
have seen this often
with virtually no explanation in Netscape and Mozilla.

It can be Network difficulties (slow) it could be the domain the images are
from is being blocked
by your security (AV and the like).

--
George Hester
I did change the tag to <img and it still doesn't work. The browser is IE
5.0. And it is probably not being blocked by anything because other images
that are similar in all ways are getting through. I don't think it would be
inappropriate to give the URL www.quick-trader.com It's going to be an
on-line Want Ads service similar to eBay without the bidding. You'll notice
that the first picture is not showing.

Ron Brennan
Jul 23 '05 #3

P: n/a
I haven't finished the fix but it appears that the problem was that the
extension .jpg was being referenced as .JPG in parts of the system which
were forgiving and in others that were not.

Thanks for all the help.
Jul 23 '05 #4

P: n/a
Yes Ron watch the names of the jpg's. For example if a jpeg is named thus:

40%20io.jpg you will not get anything. The %20 becomes a space and the name is not 40 io.jpg. So watch the
naming. If you are having trouble with jpg and JPG that's interesting. Microsoft's Windows http server is not case
sensitive.

Lastly your site is down so I couldn't "see" what you are talking about.

--
George Hester
__________________________________
"Ron Brennan" <rb******@magma.ca> wrote in message news:Lo********************@magma.ca...
I haven't finished the fix but it appears that the problem was that the
extension .jpg was being referenced as .JPG in parts of the system which
were forgiving and in others that were not.

Thanks for all the help.

Jul 23 '05 #5

P: n/a
"George Hester" <he********@hotmail.com> wrote in message
news:U4*********************@twister.nyroc.rr.com. ..
Yes Ron watch the names of the jpg's. For example if a jpeg is named thus:

40%20io.jpg you will not get anything. The %20 becomes a space and the name
is not 40 io.jpg. So watch the
naming. If you are having trouble with jpg and JPG that's interesting.
Microsoft's Windows http server is not case
sensitive.

Lastly your site is down so I couldn't "see" what you are talking about.

--
George Hester

-------------------------------------------------------

I'm implementing the fix this evening. My reason for thinking I've
identified the problem is that when I changed the suffix to lowercase it
worked fine. The problem might be in another part of the system.

My server is in my living room and generally on from 8 AM to 9 PM Eastern
time. I should have stated that. Sorry.


Jul 23 '05 #6

P: n/a
Ron Brennan wrote:
"George Hester" <he********@hotmail.com> wrote
Yes Ron watch the names of the jpg's. For example if a jpeg is named thus:
40%20io.jpg you will not get anything. The %20 becomes a space and the name
is not 40 io.jpg. So watch the
naming. If you are having trouble with jpg and JPG that's interesting.
Microsoft's Windows http server is not case sensitive.


I always try to name files and folders lower case, and never use spaces
(underscore if necessary), I think either one can still cause problems
on some servers.
Jul 23 '05 #7

This discussion thread is closed

Replies have been disabled for this discussion.