Image-ExifTool - Detecting Orientation

Posted on Fri Aug 22 16:10:34 2008 by knighthawk
Detecting Orientation
Hi Phil, I'm trying to detect the orientation of a photograph so that I can use jpegtran to perform a lossless rotation.

However I get conflicting values from different photographs. These are some of the results:
* Orientation = top - left
* Orientation = Horizontal (normal) -- this seems odd because the image has been rotated taken out in portrait mode.
* Rotate 90 CW (from another thread in this forum)

In addition, I also have this parameter: Auto Rotate : Rotate 90 CW

If it helps in anyway, the camera is Canon Powershot A530.

How would I collect the rotation angle (clockwise or anti-clockwise) to:
my $rotation?
Direct Responses: 8661 | Write a response