Created
March 10, 2018 01:49
-
-
Save mcnuttandrew/c8ea257ef492e4173d8d47b40cca7a83 to your computer and use it in GitHub Desktop.
Generating tile works of gifs example
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
# 1. have image magick installed | |
# 2. save all of the gifs the wikipedia page about bridges (https://en.wikipedia.org/wiki/Moveable_bridge) | |
# into a folder called sources | |
# 3. make a folder called targets (mkdir targets) | |
# 4. profit | |
for I in Drawbridge lift table curl roll thrust draw subm tilt fold swing transport; do | |
convert -coalesce sources/120px-MovableBridge_$I.gif targets/120px-MovableBridge_$I.png | |
montage -tile 30x1 -geometry +0+0 targets/120px-MovableBridge_$I-*.png compiled/compiled-$I.png | |
done | |
montage -tile 1x12 -geometry +0+0 compiled/*.png final.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment