Skip to content

Instantly share code, notes, and snippets.

@justinmeiners
Created July 19, 2017 18:07
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 justinmeiners/37f4d7309726a8442b0cd55ac9116d47 to your computer and use it in GitHub Desktop.
Save justinmeiners/37f4d7309726a8442b0cd55ac9116d47 to your computer and use it in GitHub Desktop.
#!/bin/bash
convert lena.tiff test0.jpg
b=4
for i in `seq 1 360`; do
x=$(($i-1))
if [ $(($i%2)) -eq 0 ];
then
b=$((4))
else
b=$((-4))
fi
convert test${x}.jpg -rotate 1 -quality 90 test${i}.jpg
rm test${x}.jpg
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment