image - Why is my favicon.ico file so much larger than the sum of its parts? -


i have created favicon.ico file contains 3 sizes of .png icon sizes, 16px, 32px, , 64px.

in mac finder, have sizes @ 339b, 1kb, , 4kb respectively after optimizing them using imageoptim. let's maybe round 6kb?

however, when run imagemagick command:

convert 16.png 32.png 64.png myfav.ico 

the resulting .ico file 22kb!

this pretty large file , unexpected.

what did wrong? can make smaller (if anything)?

the ico file not compressed one.

you can gzip , see gzipped size lesser summation of sizes 3 png files. ico files gzipped (using apache, nginx , on) before being used reduce size.

so, reason big because compression algorithm weak.


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -