Last active
April 18, 2016 14:47
-
-
Save Sacret/ad1404c82013e603290faba3df205f1f to your computer and use it in GitHub Desktop.
Make flipbook effect for 2 images (888x633) using imagemagick
This file contains 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
for i in {1..8}; do convert page1.png \ | |
\( page2.png -crop +`echo $((i*55))`x633+0+0 -repage +`echo $((888-2*i*55))`+0 \) \ | |
\( page2.png -crop +`echo $((i*55))`x633+`echo $((888-i*55))`+0 -repage +`echo $((888-i*55))`+0 \) \ | |
-flatten page-`echo $((i))`.png; done; | |
convert -delay 20 -loop 0 page1.png page-*.png page2.png page.gif; | |
rm page-*.png; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment