twolfson / grunt-spritesmith

Grunt task for converting a set of images into a spritesheet and corresponding CSS variables
MIT License
1.14k stars 92 forks source link

Rescale sprites #172

Closed gounis closed 5 years ago

gounis commented 5 years ago

Hello and congrats for your useful plugin! :)

I'm trying to find out an easy way to rescale sprites during the build process. I would like the sprites of the produced spritesheet to be smaller than the original sprites. It would be much more convenient than using CSS properties afterwards. Isn't there any parameter to set this (something likescaling: 0.3)?

twolfson commented 5 years ago

The easiest way to do this would be to: