Last active
September 12, 2019 02:12
-
-
Save orjanv/f05033316e96cde2b510 to your computer and use it in GitHub Desktop.
Convert swf to gif
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
swfrender -o out.png fig_1853.swf | |
mogrify -resample 72x72 -resize 256x256 *.png | |
convert -delay 100 -loop 1 out-*.png animation.gif | |
convert -delay 10 -loop 1 -background white -alpha remove -layers OptimizePlus out-*.png animation.gif | |
convert \ | |
-delay 10 \ | |
$(for i in $(seq 0 5 100); do echo foo${i}.png; done) \ | |
-loop 0 \ | |
animated.gif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment