views:

113

answers:

1

HI, All of a sudden today png files of my web application are not showing up in the browser. I am using Visual Studio 2008. The files are not even opening in the vs editor. When i double click on the icons in the vs editor it is saying "Cannot load file. Unknown bitmap format." But so many days those were there and was working fine. So all of a sudden what happens them to not work?

Anybody has any suggestion?

Thanks & Regard, Subrat.

A: 

It might be that they are not actually .PNG format under the hood, but were merely named that way. Some browsers will work around this and some will not. Try renaming them to .jpg, .bmp, .gif, etc., and for each test, change your <img> and see if it works in every browser. When it does, you've found the right format.

An alternative is to open your file in a paint program and convert to PNG format (not merely PNG file extension) as you save. Then you can be sure the format is correct.

Kevin Conner