Skip to content

Instantly share code, notes, and snippets.

@akiraak
Created August 16, 2010 09:45
Show Gist options
  • Save akiraak/526709 to your computer and use it in GitHub Desktop.
Save akiraak/526709 to your computer and use it in GitHub Desktop.
#!/bin/bash
left_files=(
# -90度回転させたいファイル名を列挙
0001.jpg
0002.jpg
)
right_files=(
# 90度回転させたいファイル名を列挙
0003.jpg
0004.jpg
)
topdown_files=(
# 180度回転させたいファイル名を列挙
0005.jpg
0006.jpg
)
for file in ${left_files[@]};do
echo ${file}
convert -rotate -90 ${file} ${file}
done
for file in ${right_files[@]};do
echo ${file}
convert -rotate 90 ${file} ${file}
done
for file in ${topdown_files[@]};do
echo ${file}
convert -rotate 180 ${file} ${file}
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment