Skip to content

Instantly share code, notes, and snippets.

@tkjaergaard
Created December 18, 2013 13:46
Show Gist options
  • Select an option

  • Save tkjaergaard/8022627 to your computer and use it in GitHub Desktop.

Select an option

Save tkjaergaard/8022627 to your computer and use it in GitHub Desktop.
CLI script to create sprites for the Stupid Studio jQuery-Sprite-Anim plugin.
#!/bin/bash
montage -tile 2x5 -mode concatenate -background transparent "images/*.*" sprite%05d.png
optipng -o5 *.png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment