image rotation

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Posts: 18
Joined: 2018-01-07T13:18:56-07:00
Authentication code: 1152

image rotation

Post by dav1988 » 2018-03-01T14:29:07-07:00

i should verify if a small pic, cutted out from a bigger image, was rotated of an angle from the original. can i do this by comparing the big original image with the small image obtained from the first one? how can i do?


User avatar
Posts: 22820
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: image rotation

Post by fmw42 » 2018-03-01T14:55:49-07:00

Please, always provide your IM version and platform when asking questions, since syntax may differ. Also provide your exact command line and if possible your images.

See the top-most post in this forum "IMPORTANT: Please Read This FIRST Before Posting" at ... f=1&t=9620

For novices, see ... f=1&t=9620 ... essing.php

ImageMagick has a compare function, but in general it does not compare different sizes of the same image or rotated versions. If there is no rotation or scaling, then compare can find where a small image resides inside a larger image.

However, the compare -metric phash may do what you want if the smaller image is a scaled and rotated version of the larger image and not a subsection.


Post Reply