Skip to content

Instantly share code, notes, and snippets.

@bcicen
Last active January 3, 2016 09:09
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 bcicen/8440966 to your computer and use it in GitHub Desktop.
Save bcicen/8440966 to your computer and use it in GitHub Desktop.
#!/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