Created
June 27, 2012 15:43
-
-
Save jescalan/3004929 to your computer and use it in GitHub Desktop.
image series > sprite
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # This script runs through all the png images in a passed folder and sprites them | |
| require 'fileutils' | |
| puts "processing files..." | |
| files = [] | |
| Dir["#{ARGV.first}/*.png"].each do |f| | |
| files << f | |
| end | |
| system "if [ -e sprite.png ]; then rm sprite.png; fi" | |
| system "convert #{files.join(" ")} -append sprite.png" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment