Skip to content

Instantly share code, notes, and snippets.

Working from home

Anastasia A. Sacret

Working from home
Block or report user

Report or block Sacret

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
Sacret /
Last active Apr 18, 2016
Make flipbook effect for 2 images (888x633) using imagemagick
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;
You can’t perform that action at this time.