-
Notifications
You must be signed in to change notification settings - Fork 1
ICO241
ICO files can contain PNG files. For various reasons, however, the ICO file format only permits one type of PNG file to be embedded in an icon: files that use an RGBA32 encoding.
You will receive warning ICO241 if the PNG file that is embedded in the icon is not encoded with RGBA pixel order. Some graphics libraries may reject the icon as malformed if the PNG is not encoded as RGBA32.
You can convince IcoTools to create such an icon. Most commonly, the IcoCrush tool will wind up creating one of these if you pass the PNG through an external tool that is too aggressive about optimizing the PNG file. For example, if you pass the icon through pngcrush, you need to give it the "-c 6 -noreduce" option to force it to emit RGBA32 files.
You might receive this warning if another tool is sloppy about how it embeds PNGs inside the ICO file. If you happen to know exactly which tool generated this icon, please file an issue here on GitHub with that info, so we can improve the documentation and tooling.
Known tools that emit ICO files that break this rule:
- ImageMagick prior to version 7.0.10-35: see https://github.com/ImageMagick/ImageMagick/issues/2756