Skip to content

Instantly share code, notes, and snippets.

@shinchit
Created July 19, 2015 13:35
[ImageMagick] 縦長画像が90度回転される問題を解決する
# auto-orientを使えばよしなに処理してくれます。
$ ls *.jpg | xargs -I{} convert {} -auto-orient -verbose conved/{}
# conved/ディレクトリに*.jpgで縦長画像は90度回転、横長画像はそのままの画像が生成されます。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment