Page 1 of 1

Query about angle of rotation for given input tiff file

Posted: 2009-05-25T00:53:29-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-25T22:04:20-07:00
by anthony
Usually this is in the EXIF profile of the image. It specifies the camera orientation.
It is the same for TIFF and JPEG

See Im examples Photo orientation
http://www.imagemagick.org/Usage/photos/#orient

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

Posted: 2009-05-26T07:23:57-07:00
by priyankanagare
Hi,
Thanks for your reply.
I tried that but its returning a blank.

I wrote following command :
identify -format '%[exif:orientation]' D:\testing\inverted_images\Data\000001.tif
but it returns ' '

I tried this command for both .tiff and .jpg images in both cases it return blank. :(

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

Posted: 2009-05-28T22:38:22-07:00
by anthony
is it listed in the verbose output of identify?

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

Posted: 2009-05-29T00:54:15-07:00
by priyankanagare
Hi,

Yes in case of .tiff it is listed in verbose as Orientation: TopLeft.
Still identify -format '%[exif:orientation]' D:\1.tif is returning blank ' '.

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

Posted: 2009-05-31T17:11:49-07:00
by anthony
Does a verbose listing even show EXIF profile information?

If not then the TIFF probably has the infor hidden in a photoshop specific profile, which IM does not understand.