Created
August 16, 2010 09:45
-
-
Save akiraak/526709 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 | |
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