Query about angle of rotation for given input tiff file

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
priyankanagare

Query about angle of rotation for given input tiff file

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

The orientation is returned with the identify -verbose command if the TIFF image includes this information.
priyankanagare

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

Post by priyankanagare »

Hi,
I tried that but for both 180 and 0 degree rotation its giving me orientation as top-left.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post 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.
Post Reply