Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated Images are HUGE #11

Open
neilbaylorrulez opened this issue Oct 7, 2014 · 1 comment
Open

Generated Images are HUGE #11

neilbaylorrulez opened this issue Oct 7, 2014 · 1 comment

Comments

@neilbaylorrulez
Copy link

Hey there

I am using this task and I noticed that the sprites it generates are quite "bloated"

The source of my sprite is 7 images (7 @1x and 7 at 2x) all of which are under 20kb.

The generated images are:

sprite.png: 780k
sprite@2x.png: 3MB!

To get around this i am running imageoptim which reduces the size to

sprite.png: 12k 
sprite@2x: 22k

Here's the output after I run imageoptim:

/dist/images/sprite.png was: 799.424kb now: 12.362kb saving: 787.062kb (98.00%) quality: 99.9138292%
/dist/images/sprite@2x.png was: 3151.268kb now: 23.051kb saving: 3128.217kb (99.00%) quality: 99.859601%
TOTAL was: 3962.329kb now: 39.186kb saving: 3923.143kb (99.00%) quality: 99.859601%
@neilbaylorrulez
Copy link
Author

$ node --version
v0.10.24
$ npm list grunt-spritesheet
grunt-spritesheet@0.1.4 
$ brew info imagemagick
imagemagick: stable 6.8.9-5 (bottled), HEAD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant