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?
Printable View
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?
It probably has no idea what a PNG is (no associated mime type) so it just asks to download it.
It is a fireworks image...
The association might be in the netscape's options.
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......
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.
Or if you're programming it yourself, set the Content-type manually. It's probably "image/png", but double check.