What ImageMagick command will display the orientation of a JPG file?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
as per
identify -formatdocs (It’s the bit further down about exif metadata).Try
To see what metadata is in the image (for example if the image was not taken with a camera, the orientation tag will not be set).
Alternatively you could do something like
which gives you the width by height (e.g. ‘800×598’, ‘1936×2592’) and use these to determine whether the image is upright or not (not sure how reliable this is though – sometimes you take a portrait image with a camera and the EXIF data will correctly record the orientation, but the image may still appear landscape).