kevva / to-ico

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

auto generate different sizes of image #5

Closed steambap closed 7 years ago

steambap commented 7 years ago

Hello, I've add the logic that automatically generate different sizes for an image.

It works on regular image, but breaks on images with transparent pixels (specifically, it throws when resize to 32x32 and 16x16). I required Jimp directly and resize images with transparent pixels, and they work just fine. I'll probably look into resize-img tomorrow.

kevva commented 7 years ago

You don't have to resize the ico. All images you provide are merged into the ico file.