kevva / to-ico

Convert PNG to ICO in memory
MIT License
137 stars 19 forks source link

Why can't arbitrary sizes be used? #2

Closed wolfgang42 closed 8 years ago

wolfgang42 commented 8 years ago

The readme says:

The images must have a size of 16x16, 24x24, 32x32, 48x48, 64x64, 128x128 or 256x256.

Looking through the code, I don't see an obvious reason for this requirement. I'd like to create a file which also has 96x96, 40x40, and 24x24 icons for use in a Windows program.

If you can give me a nudge in the right direction I can probably submit a PR for this, but I'm not seeing where this limitation is coming from.

wolfgang42 commented 8 years ago

Actually, I just tried some other sizes and it seems to work fine. Can this line just be removed from the docs altogether?