Skip to content

Instantly share code, notes, and snippets.

@Battleroid
Created July 19, 2018 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Battleroid/fd19adabdd7c2964df971592b88d8b4b to your computer and use it in GitHub Desktop.
Save Battleroid/fd19adabdd7c2964df971592b88d8b4b to your computer and use it in GitHub Desktop.
mkdir tmp
for i in `seq 1 100`;
do
let "owo=100-$i"
echo $owo
convert -liquid-rescale $owo% $1 ./tmp/$i.png
convert -scale 300x300 ./tmp/$i.png ./tmp/$i.png
done
convert -delay 1 -loop 0 ./tmp/{1..100}.png ${2:-result.gif}
rm -rf ./tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment