Recipe for creating Windows ICO files with ImageMagick?
Posted: 2012-07-17T09:42:56-07:00
I would like to create .ico icon for my Windows application dynamically (from the SVG file) by using ImageMagick. The icon should be created according to the Microsoft recommendations [1] [2] regarding application icons (different sizes, depths, and an additional hi-res PNG icon for Vista+ in a single .ico). How do I do that? Does anyone has a ready-made recipe?
Microsoft lists various color depth and size requirements [1] for the icon. ImageMagick has the -depth and -colors options, but I'm not sure how to use them correctly in this case.
Additionally, it looks like Vista+ supports 256x256 hi-res icon [2] embedded into the very same .ico which can (should? must?) be a compressed PNG. How do I "join" the Windows XP icons and this new Vista icon into a single .ico file?
[1]: http://msdn.microsoft.com/en-us/library ... cons_step5
[2]: http://msdn.microsoft.com/en-us/library ... .aspx#size
Microsoft lists various color depth and size requirements [1] for the icon. ImageMagick has the -depth and -colors options, but I'm not sure how to use them correctly in this case.
Additionally, it looks like Vista+ supports 256x256 hi-res icon [2] embedded into the very same .ico which can (should? must?) be a compressed PNG. How do I "join" the Windows XP icons and this new Vista icon into a single .ico file?
[1]: http://msdn.microsoft.com/en-us/library ... cons_step5
[2]: http://msdn.microsoft.com/en-us/library ... .aspx#size