JPEG image doesn't always appear

Discussion in 'HTML' started by Ron Brennan, Sep 30, 2004.

  1. Ron Brennan

    Ron Brennan Guest

    Good evening.

    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 know to at least hard
    core developers and I'd be quite appreciative if someone would give me a
    hand.

    Thank you,
    Ron.
     
    Ron Brennan, Sep 30, 2004
    #1
    1. Advertising

  2. Ron Brennan

    Dan Abrey Guest

    "Ron Brennan" <> wrote in message
    news:...
    > Good evening.
    >
    > 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 know to at least hard
    > core developers and I'd be quite appreciative if someone would give me a
    > hand.
    >
    > Thank you,
    > Ron.
    >
    >
    >
    >


    1) Use <img> tags rather than <image>
    2) Check that all of the files are of the correct extension (ie .jpeg or
    ..jpg)
     
    Dan Abrey, Sep 30, 2004
    #2
    1. Advertising

  3. "Dan Abrey" <> writes:

    > "Ron Brennan" <> wrote in message
    > news:...
    >> Good evening.
    >>
    >> 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 know to at least hard
    >> core developers and I'd be quite appreciative if someone would give me a
    >> hand.
    >>
    >> Thank you,
    >> Ron.
    >>

    >
    > 1) Use <img> tags rather than <image>
    > 2) Check that all of the files are of the correct extension (ie .jpeg or
    > .jpg)


    I'd add that URLs are case sensitive, so make sure what you've got in
    your <img> tags exactly matches the names of the files and folders.

    Also, your image tag should look something like this:

    <img src="SmallImages/image1.jpeg" alt="Image Description" height="40" width="30" />

    Matt
     
    Matt N. Jones, Sep 30, 2004
    #3
  4. Ron Brennan

    Ron Brennan Guest

    Nope, still doesn't work, even after changing the image tags to img, and
    making sure of the other suggestions.

    Again, these images have been sometimes displaying and at other times not,
    with the same code.

    Is there a timing problem perhaps that varies according to Internet traffic?
    Any other possibilities?
     
    Ron Brennan, Sep 30, 2004
    #4
  5. Ron Brennan

    Mark Parnell Guest

    On Thu, 30 Sep 2004 22:22:06 GMT, "Matt N. Jones"
    <> declared in alt.html:

    > Also, your image tag should look something like this:
    >
    > <img src="SmallImages/image1.jpeg" alt="Image Description" height="40" width="30" />


    1) The alt attribute is a textual _replacement_ for the image, not a
    description.
    2) The /> at the end is only correct in XHTML. Remove the / if using
    HTML.

    --
    Mark Parnell
    http://www.clarkecomputers.com.au
    "Never drink rum&coke whilst reading usenet" - rf 2004
     
    Mark Parnell, Oct 1, 2004
    #5
  6. Ron Brennan

    Ron Brennan Guest

    The HTML is being generated by a Java servlet and is a bit complex to post
    here. It was suggested that I post the URL. It's an on-line Want Ads
    application, similar to eBay without the bidding.

    www.quick-trader.com
     
    Ron Brennan, Oct 1, 2004
    #6
  7. Ron Brennan

    Spartanicus Guest

    Mark Parnell <> wrote:

    >> <img src="SmallImages/image1.jpeg" alt="Image Description" height="40" width="30" />

    >
    >1) The alt attribute is a textual _replacement_ for the image, not a
    >description.


    Typically a description of the image is exactly what is required for it
    to function as a textual replacement.

    --
    Spartanicus
     
    Spartanicus, Oct 1, 2004
    #7
  8. Ron Brennan

    Ron Brennan Guest


    > 2) The /> at the end is only correct in XHTML. Remove the / if using
    > HTML.


    Sorry, that was a typing mistake on my part. I don't actually have a final
    /> in the <img> part of the element.(The code is actually in a Java
    servlet.)
     
    Ron Brennan, Oct 1, 2004
    #8
  9. Ron Brennan

    Ron Brennan Guest

    > 2) The /> at the end is only correct in XHTML. Remove the / if using
    > HTML.


    Sorry, that was a typing mistake on my part. I don't actually have a final
    /> in the <img> part of the element.
     
    Ron Brennan, Oct 1, 2004
    #9
  10. Ron Brennan

    CPA Guest

    On Thu, 30 Sep 2004 18:53:28 -0400, "Ron Brennan" <>
    wrote:

    > Nope, still doesn't work, even after changing the image tags to img, and
    > making sure of the other suggestions.
    >
    > Again, these images have been sometimes displaying and at other times not,
    > with the same code.
    >
    > Is there a timing problem perhaps that varies according to Internet traffic?
    > Any other possibilities?


    Yes, I suspect there are timing problems but I suspect it is a
    combination of hardware and software but pauses from the internet
    connection could complicate things.

    When computers were slower than they are now the javascript 'onload'
    was used to preload graphics. If javascripting is acceptable this
    might work for you?


    Charles.Angelich

    tech:
    http:/www.devedia.com/dosghost/
    arts:
    http:/www.devedia.com/dosghost/faf/
    music
    http:/www.devedia.com/dosghost/dos/samples.asp
     
    CPA, Oct 1, 2004
    #10
  11. Ron Brennan

    Ron Brennan Guest

    "CPA" <> wrote in message
    news:...
    > On Thu, 30 Sep 2004 18:53:28 -0400, "Ron Brennan" <>
    > wrote:
    >
    > > Nope, still doesn't work, even after changing the image tags to img, and
    > > making sure of the other suggestions.
    > >
    > > Again, these images have been sometimes displaying and at other times

    not,
    > > with the same code.
    > >
    > > Is there a timing problem perhaps that varies according to Internet

    traffic?
    > > Any other possibilities?

    >
    > Yes, I suspect there are timing problems but I suspect it is a
    > combination of hardware and software but pauses from the internet
    > connection could complicate things.
    >
    > When computers were slower than they are now the javascript 'onload'
    > was used to preload graphics. If javascripting is acceptable this
    > might work for you?
    >
    >
    > Charles.Angelich
    >
    > tech:
    > http:/www.devedia.com/dosghost/
    > arts:
    > http:/www.devedia.com/dosghost/faf/
    > music
    > http:/www.devedia.com/dosghost/dos/samples.asp



    JavaScript is certainly acceptable; the app is about 25 % JavaScript. Can
    you give me a code snippet?
     
    Ron Brennan, Oct 1, 2004
    #11
  12. Ron Brennan

    Mark Parnell Guest

    On Fri, 01 Oct 2004 00:41:58 +0100, Spartanicus <>
    declared in alt.html:

    > Typically a description of the image is exactly what is required for it
    > to function as a textual replacement.


    In some instances yes, but not typically. If the image is of text (which
    it shouldn't be, but we won't go there), then the alt text should be
    that same text, not "blue button".

    If the image is purely decorative, the alt text should be blank - "",
    not "swirly green border".

    In other cases such as a photo, the alt text may actually be a
    description of the image, but that is not the norm.

    --
    Mark Parnell
    http://www.clarkecomputers.com.au
    "Never drink rum&coke whilst reading usenet" - rf 2004
     
    Mark Parnell, Oct 1, 2004
    #12
  13. Ron Brennan

    Ron Brennan Guest

    Answer

    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, especially to the gentleman who suggested this
    earlier and put it on my list of things to check.
     
    Ron Brennan, Oct 1, 2004
    #13
  14. Ron Brennan

    CPA Guest

    On Thu, 30 Sep 2004 19:53:20 -0400, "Ron Brennan" <>
    wrote:

    [...]

    > > When computers were slower than they are now the javascript 'onload'
    > > was used to preload graphics. If javascripting is acceptable this
    > > might work for you?


    > JavaScript is certainly acceptable; the app is about 25 % JavaScript. Can
    > you give me a code snippet?


    Preload:

    http://www.macromedia.com/devnet/mx/dreamweaver/articles/code_standards.html

    The info at the following link would suggest that my assumption(s)
    are wrong but it's another possibile solution?

    http://lists.evolt.org/archive/Week-of-Mon-20040614/160341.html


    Charles.Angelich

    tech:
    http:/www.devedia.com/dosghost/
    arts:
    http:/www.devedia.com/dosghost/faf/
    music
    http:/www.devedia.com/dosghost/dos/samples.asp
     
    CPA, Oct 1, 2004
    #14
  15. Ron Brennan

    Ron Brennan Guest

    Although I haven't implemented the fix yet, it appears the problem was much
    more simple than I had feared. (See the latest post here.) I'm going to take
    a look at that article anyways.

    Thanks CPA.
     
    Ron Brennan, Oct 1, 2004
    #15
  16. Ron Brennan

    CPA Guest

    On Thu, 30 Sep 2004 21:00:28 -0400, "Ron Brennan" <>
    wrote:

    > Although I haven't implemented the fix yet, it appears the problem was much
    > more simple than I had feared. (See the latest post here.) I'm going to take
    > a look at that article anyways.
    >
    > Thanks CPA.
    >

    You're welcome. :)


    Charles.Angelich

    tech:
    http:/www.devedia.com/dosghost/
    arts:
    http:/www.devedia.com/dosghost/faf/
    music
    http:/www.devedia.com/dosghost/dos/samples.asp
     
    CPA, Oct 1, 2004
    #16
  17. Ron Brennan

    Hywel Guest

    Re: Answer

    In article <>, Ron Brennan says...
    > 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, especially to the gentleman who suggested this
    > earlier and put it on my list of things to check.


    http://www.allmyfaqs.com/faq.pl?How_to_post

    --
    Hywel

    http://sponsorhywel.org.uk/
     
    Hywel, Oct 1, 2004
    #17
  18. Ron Brennan

    Noozer Guest

    Re: Answer

    What was the question?

    "Ron Brennan" <> wrote in message
    news:...
    > 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, especially to the gentleman who suggested this
    > earlier and put it on my list of things to check.
    >
    >
     
    Noozer, Oct 1, 2004
    #18
  19. Ron Brennan

    Martin Jay Guest

    Re: Answer

    In message <mpd7d.559964$M95.552786@pd7tw1no>, Noozer <>
    writes
    >What was the question?


    I have three:

    1. Why should I quote?

    2. Why shouldn't I top-post?

    3. Does Outlook Express thread using the 'References' header? If not,
    why not?
    --
    Martin Jay
     
    Martin Jay, Oct 1, 2004
    #19
  20. Ron Brennan

    Neal Guest

    On Fri, 1 Oct 2004 09:55:06 +1000, Mark Parnell
    <> wrote:

    > In other cases such as a photo, the alt text may actually be a
    > description of the image, but that is not the norm.


    Also, it's better to think in terms of replacement instead of description.
    An example: a pie graph showing the percent of polled voters supporting
    various candidates in an upcoming election.

    Description:

    alt="Pie graph showing 40% of polled voters support Jones, 35% support
    Smith, and 25% support Bozo"

    The sightless have no need to be told this is a pie graph. What they need
    is the communicated information. (If that information is explicitly
    included in the text content, then this image is supplementary and alt=""
    is fine. But if this image communicates something not in the prose, the
    alt text must communicate it.)

    Replacement:

    alt="In a recent poll by NCG, 40% of voters indicated they support Jones
    in the race for town dogcatcher. Smith was supported by 35% of those
    polled, and 25% supported Bozo."

    By thinking, "What sentence(s) would I use if this picture could not be
    included in the page?", the readability of the image-less page is
    enhanced. The above is clearly superior.

    So the key to good alt text is to think about what you'd do instead if
    HTML didn't allow images. Would you add a paragraph of text instead, would
    you use link text, would you not use anything in lieu of the image? That's
    what your alt text should be.
     
    Neal, Oct 1, 2004
    #20
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. RobertH
    Replies:
    3
    Views:
    4,820
    RobertH
    Feb 17, 2004
  2. Deryck
    Replies:
    4
    Views:
    548
    derek giroulle
    Jun 22, 2004
  3. =?Utf-8?B?THVpeiBDYXJsb3MgRm9uc2VjYQ==?=

    Image in VB 2005 from a DB ACESS - doesn't appear

    =?Utf-8?B?THVpeiBDYXJsb3MgRm9uc2VjYQ==?=, Sep 14, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    449
    =?Utf-8?B?THVpeiBDYXJsb3MgRm9uc2VjYQ==?=
    Sep 14, 2006
  4. lovaspillando
    Replies:
    0
    Views:
    1,064
    lovaspillando
    Aug 26, 2007
  5. Ivan Alameda Carballo
    Replies:
    0
    Views:
    510
    Ivan Alameda Carballo
    Aug 26, 2007
Loading...

Share This Page