Invalid Unsupported Ico File Irfanview
First of all, thank you for making the ultimate best NFO viewer, ever!
When saving png files, the value is from 0 to 3, but they do not impact the quality because PNG is lossless compression. 0 is uncompressed, 1 is low compression and fast, 2 is default compression, and 3 is high compression but slow.
Using Infekt 0.9.7 x64 in win10.
I use IrfanView (a very popular image viewer) as my picture viewer, .
For any .NFO I've tried to export to .PNG (File Export As PNG/As PNG (transparent)
)
-for example this NFO (please unzip)-
the exported .PNG file cannot be opened in IrfanView:
the following error is displayed instead Decode error, Invalid or unsupported PNG file
:
In Windows's Photo app and Paint program (as well as Photoshop 2014 CC) it opens ok.
Related info from the IrfanView forum (link) (about 3 months ago) by the IrfanView author :
Newer IrfanView versions use a new LibPNG with strict(er) checks for buggy header and chunks.
=> there is a problem with the PNG header entries.
In order to avoid errors and overflows, IrfanView will stop.
So, I've made this issue here (instead of the IrfanView forum)
because IrfanView is a very popular image viewer,
and I've never had any issues with any image files before,
so I thought that maybe something could be changed in Infekt,
to make the exported .PNG files more compatible with LibPNG.
I see in the Infekt changelog that it uses LibPNG v1.6.28.
I've contacted IrfanView author regarding this issue, and for the exact LibPNG version that the program currently uses (it's not mentioned in its site).
What I did:Trying to create image from a uploaded file using Telerik RadUpload control
What is wrong:From my development machine I could upload any file of type .ico but it is throwing exception on production server: System.ArgumentException: Parameter is not valid. at System.Drawing.Image.FromStream(FileUpload.UploadedFiles(0).InputStream)
for particular ico (I would have attached the file but SO is not allowing .ico extension files)
Make Ico File Free
I could not really debug the issue as it is working on my development machine (Windows 7). Any suggestions on why the issue on production server and what I should try? Again, I can't reproduce the issue on my machine.
Update I: I could upload other ico files on production. The problem is with ico created using tools like Irfan View Image or Ico FX . Testing team used these tools to create ico files with 24 bit color depth and having problem in uploading them. Development machine has .net framework 4.5 where as production has 4.0
Update II: The specific icons that are causing problems have 24 bit color depth. 1 bit, 4 bit, 8 bit, 32 bit work with out any issue.
Benjamin