Results 1 to 6 of 6

Thread: PNG image

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    12

    Wink PNG image

    I have used gd library and created a png image, when I put it IE using the <img> tag, it is ok and IE can show the image, but when I tried it on netscape (4.05), netscape asked me to download the image instead of showing it, why?

  2. #2
    It probably has no idea what a PNG is (no associated mime type) so it just asks to download it.

  3. #3
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527
    It is a fireworks image...

    The association might be in the netscape's options.

  4. #4

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Posts
    12

    Unhappy Thx for the reply but...

    but when I use netscape and goto other people's web page that contain PNG, netscape can show the PNGs with no problem. So it might not be the file association problem......

  5. #5
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Then you need to configure your server to correctly handle the PNG mime type. IE will guess based on the file extension, other browsers won't.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  6. #6
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Or if you're programming it yourself, set the Content-type manually. It's probably "image/png", but double check.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width