PNG image won't display in IE7 or Firefox, but works in Opera

I have a webservice that creates a PNG file and returns a link to it. This image is then used by a website (ASP.NET).

IE7 and Firefox 3 cannot show this image, but in Opera 9.5 it works fine.

Has anyone faced the same problem before?

Edit: The content type is set to image / png. The image is created using a third party library that is not publicly available.

Is it possible to check a png file for compliance with the standard?

+1


source to share


3 answers


It turns out that the png is not showing with the correct dpi settings. A subtle bug that appeared a few months later.



0


source


Basically, both IE7 and FF can display PNG images. It seems that your PNG is not fully compatible with the rendering engines of these browsers (or with the standard?).

It's hard to tell exactly where the problem is without knowing how the image is created. Which lib are you using? Do you have some sample code?



EDIT (after reading Yuval A's comment): You can also check if the HTTP request sent by your webserver has the correct content type set for PNG images. This may be required by browsers to display the image correctly.

+1


source


Check how your web service "returns a link" to it. Is it represented correctly in the HTML answer? (i.e. in an IMG tag with the correct src ?)

0


source







All Articles