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
-gGrid value, e.g.30-vWill glue images vertically rather than horizontally-tWill remove transparent pixels from images before making sprite (caution: this will modify the original images).--debugWill append labels to the sprite with position and size information. This will also force the sprite to be vertical.