Skip to content
jtippet edited this page Mar 23, 2019 · 1 revision

ICO440: NotPng

You will receive error ICO440 if you provide a PNG file as input, but the PNG file is not actually a PNG. For example, if you provide a JPG, you will receive ICO440.

Ensure you're providing the correct file, and ensure the file is really a PNG file. In the scary real world, there are some JPGs and GIFs that are accidentally saved with a .PNG file extension. Many image viewers have code to detect this situation and figure out how to display the image anyway, so it might seem like the file is fine. But the IcoTools suite are strict about this, and will not let you fudge the file format.

You can verify a file is really a PNG by opening the file in a text editor: the first few letters should be "PNG".

Clone this wiki locally