Last active
July 6, 2018 17:12
-
-
Save gvJaime/ee52c65dd150eb7cf7034baa4b39e6bc to your computer and use it in GitHub Desktop.
Script for making content aware scale gifs
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
mkdir tmp | |
for i in `seq 1 100`; | |
do | |
let "owo=100-$i" | |
echo $owo | |
/usr/local/bin/convert -liquid-rescale $owo% original.png ./tmp/$i.png | |
/usr/local/bin/convert -scale 300x300 ./tmp/$i.png ./tmp/$i.png | |
done | |
/usr/local/bin/convert -delay 1 -loop 0 ./tmp/{1..100}.png liquid.gif | |
rm -rf ./tmp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment