Page 1 of 1

Query about angle of rotation for given input tiff file

Posted: 2009-05-25T03:05:07-07:00
by priyankanagare
Hi,
I am using imageMagick version 6.5.2-Q16.
Please tell me the command string to determine angle of rotation in given input tiff file.
I want to find out whether image is straight or rotated by angle 90,180 or 270 degree.

Re: Query about angle of rotation for given input tiff file

Posted: 2009-05-25T07:07:38-07:00
by magick
The orientation is returned with the identify -verbose command if the TIFF image includes this information.

Re: Query about angle of rotation for given input tiff file

Posted: 2009-05-25T07:46:39-07:00
by priyankanagare
Hi,
I tried that but for both 180 and 0 degree rotation its giving me orientation as top-left.

Re: Query about angle of rotation for given input tiff file

Posted: 2009-05-25T10:34:40-07:00
by magick
That simply means that orientation information is not included in the TIFF image file. You need to determine it yourself either by inspection or by a sophisticated algorithm that identifies the medial axis.