[PLUG] Resizing images with imagemagick

Paul Mullen pm at nellump.net
Wed Apr 24 19:49:25 UTC 2019


On Tue, Apr 23, 2019 at 02:49:32PM -0700, Rich Shepard wrote:
> Seems like most folks hold the camera with the shutter release
> button to the left so image rotation would be clockwise.

The EXIF orientation tag tells you which way the image needs to be
rotate for it to appear as it did in the viewfinder at the moment of
exposure.  E.g., if you rotate the camera counter-clockwise prior to
exposure, you'll need to rotate the resulting image counter-clockwise
for it to appear correct (and *vice versa*).

exiftool (and presumably similar programs) will tell you which way you
need to rotate the image file based on the tag value:

    $ exiftool -Orientation camera_rotated_cw.jpg
    ---- IFD0 ----
    Orientation                     : Rotate 90 CW
    
    $ exiftool -Orientation camera_rotated_ccw.jpg
    ---- IFD0 ----
    Orientation                     : Rotate 270 CW


--
Paul



More information about the PLUG mailing list