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.
Query about angle of rotation for given input tiff file
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Query about angle of rotation for given input tiff file
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
It is the same for TIFF and JPEG
See Im examples Photo orientation
http://www.imagemagick.org/Usage/photos/#orient
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Query about angle of rotation for given input tiff file
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.
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.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Query about angle of rotation for given input tiff file
is it listed in the verbose output of identify?
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: Query about angle of rotation for given input tiff file
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 ' '.
Yes in case of .tiff it is listed in verbose as Orientation: TopLeft.
Still identify -format '%[exif:orientation]' D:\1.tif is returning blank ' '.
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: Query about angle of rotation for given input tiff file
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.
If not then the TIFF probably has the infor hidden in a photoshop specific profile, which IM does not understand.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/