$ convert ${in_file} -auto-orient ${out_file}
$ find . -type f -name '*.jpg' | xargs -P ${thread_num} -I@ convert @ -auto-orient @
$ convert <in-file> -rotate <degree-to-rotate> <out-file>
option | description | remark |
---|---|---|
<degree-to-rotate> | 回転度数を degree で指定する。+は時計回り方向、-は半時計回り方向となる |
$ convert <in-file> -crop <width>x<height>+<X>+<Y> <out-file>
option | description | remark |
---|---|---|
<width> | 切り抜き後の画像幅 | |
<height> | 切り抜き後の画像高さ | |
<X> | 切り抜く基準座標X | 省略した場合は 0 になる |
<Y> | 切り抜く基準座標Y | 省略した場合は 0 になる |