mixtur/webpack-spritesmith

How to optimise the sprite image?

majaray opened this issue · 2 comments

Hi,
I have many of png image files that want to convert into a single sprite image.
But I found the total size of the png files are less than the sprite image.
Sometimes it could be a huge different.
May I know is there any approach to optimise the exported sprite image?

Thank you!

If you use file-loader as in README then you can also use whole universe of webpack plugins that will allow you to compress final image better.
Though it is possible that you still will not be able to achieve smaller size. If for example you have small pallettes in every source png, but overall pallette is large then it will be harder to compress combined image better than original.

i see, understood.
thanks for your advise @mixtur!