Creating sprites like a boss.
-
First things first, install Homebrew.
-
Install ImageMagick:
brew install imagemagick
-
Install Ghostscript.
brew install ghostscript
-
Clone this repo:
git clone git@github.com:bedrich/solid-sprite.git solid-sprite
From within the directory where you installed solid-sprite
:
./bin/solidsprite [images_directory] [sprite_filename]
Options
-g
Grid value, e.g.30
-v
Will glue images vertically rather than horizontally-t
Will remove transparent pixels from images before making sprite (caution: this will modify the original images).--debug
Will append labels to the sprite with position and size information. This will also force the sprite to be vertical.