Created
July 2, 2014 05:35
-
-
Save amano41/318394827be28eaf0ba5 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/sh | |
for file in *.jpg | |
do | |
out=${file%.*}.png | |
convert $file -rotate 90 $out | |
touch -r $file $out | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment