Posible bug - surprisingly huge icon
Posted: 2017-09-05T08:13:26-07:00
I have logo in svg format and i tried to generate icon but generated icons (ico format) are surprisingly huge. Below is what i found:
To eliminate part with converting svg to png images i did it manually(in gimp): so i got following images and sizes
i used these files to convert them to icon and i got:
and again icon with size=128(64 too) is surprisingly huge.
I tried to play with -compress and -quality settings but files are still quite big
Version: ImageMagick 6.8.9-9 Q16 x86_64 2017-07-31 http://www.imagemagick.org
Code: Select all
$ for i in 16 32 64 128 256 ; do mogrify -format ico -density 600 -define icon:auto-resize=$i file.svg ; echo -n "$i " ; ll -h file.ico | awk '{print $5}'; done
16 1,2K
32 4,2K
64 17K
128 67K
256 33K
Code: Select all
16.png 641
32.png 1,3K
64.png 2,6K
128.png 4,6K
256.png 9,1K
Code: Select all
$ for i in `ls *.png` ; do convert $i $i.ico ; echo -n "$i.ico "; ll -h $i.ico | awk '{print $5}'; done
16.png.ico 1,2K
32.png.ico 4,2K
64.png.ico 17K
128.png.ico 67K
256.png.ico 9,5K
I tried to play with -compress and -quality settings but files are still quite big
Version: ImageMagick 6.8.9-9 Q16 x86_64 2017-07-31 http://www.imagemagick.org