Created
November 25, 2013 18:24
-
-
Save takehiko/7646030 to your computer and use it in GitHub Desktop.
From PNG files generated by PowerPoint to an animated GIF image
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
#!/bin/zsh | |
# スライド1.PNG ... スライド27.PNG | |
# => slide__01.png ... slide__27.png | |
# => result.gif | |
if [ 1 = 1 ] | |
then | |
for i in {1..27} | |
do | |
echo $i | |
# echo mv $(printf "スライド%d.PNG" i) $(printf "slide__%02d.png" i) | |
convert -geometry 400x300! $(printf "スライド%d.PNG" i) -fill none -stroke darkgreen -draw 'rectangle 0,0 399,299' $(printf "slide__%02d.png" i) | |
done | |
fi | |
echo "making animated GIF" | |
convert -geometry 400x300! -delay 250 -loop 0 -colors 32 slide__*.png result.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment