Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
for f in *.png
do
echo "Processing $f file"
convert $f -crop 1024x77+0+0 +repage first.png
convert $f -crop 1024x50+0+440 +repage second.png
convert $f -crop 1024x902+0+788 +repage third.png
montage first.png second.png third.png -tile x3 -geometry +0+0 final-$f
done
# http://www.cyberciti.biz/faq/bash-loop-over-file/
# http://www.imagemagick.org/discourse-server/viewtopic.php?t=21597
# http://www.imagemagick.org/Usage/montage/
# http://www.imagemagick.org/Usage/crop/
# http://kylepurdon.com/blog/waybacklapse-a-python-wayback-machine-time-lapse-creator.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment