LoginSignup
3
2

More than 3 years have passed since last update.

JPEG Exif Orientation を exiftoolで編集

Last updated at Posted at 2020-09-15

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
image.png image.png image.png image.png
5 = Mirror horizontal and rotate 270 CW 6: Rotate 90 CW 7: Mirror horizontal and rotate 90 CW 8: Rotate 270 CW
image.png image.png image.png image.png
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2