Last active
January 3, 2016 09:09
-
-
Save bcicen/8440966 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
[[ $# -neq 1 ]] && echo "usage: ./rapidartifact.sh image.jpg"; exit | |
IMAGE=$1 | |
for i in {2..10000}; do | |
echo "$IMAGE$LAST.jpg $IMAGE$i.jpg" | |
convert -quality 99 -resize '1920x1080' $IMAGE$LAST.jpg $IMAGE$i.jpg | |
rm $IMAGE$LAST.jpg | |
LAST=$i | |
echo -ne " $[($i*1000)/10000]% \r" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment