MacでJPEG Exif Orientationを編集する方法の備忘録。
JPEG Exif Orientationは、exiftoolで編集できる。
exiftoolのインストール
% brew install exiftool
% /usr/local/bin/exiftool -ver
12.00
Orientationの編集
/usr/local/bin/exiftool -Orientation#=<Orientation> -n <ファイル名>"
実行例
/usr/local/bin/exiftool -Orientation#=2 sample.jpg"
Orientationで指定する引数
1 = Horizontal (normal) : 標準
2 = Mirror horizontal : 水平方向に反転
3 = Rotate 180 : 180°回転
4 = Mirror vertical : 垂直方向に反転
5 = Mirror horizontal and rotate 270 CW :反時計回りに90°回転および垂直方向に反転
6 = Rotate 90 CW : 反時計回りに90°回転
7 = Mirror horizontal and rotate 90 CW : 時計回りに90°回転および垂直方向に反転
8 = Rotate 270 CW :方向: 時計回りに90°回転
1: Horizontal (normal) | 2: Mirror horizontal | 3: Rotate 180 | 4: Mirror vertical |
---|---|---|---|
5 = Mirror horizontal and rotate 270 CW | 6: Rotate 90 CW | 7: Mirror horizontal and rotate 90 CW | 8: Rotate 270 CW |
---|---|---|---|