Rotate and move image

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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

try -draw "rotate 15 image over 100,100,200,200 'img1.jpg'"

You were sticking the rotate command inside a image command!

For more see IM Examples, Draw, Canvas Warping
http://www.cit.gu.edu.au/~anthony/graph ... #transform
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Not that hard. The image is rotated about the point 0,0.

You can translate the rotation point to fix that problem. See the IM examples pages I point you to previously.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Now that is wierd and is probably a bug, unless you have -virtual-pixels tile or something like that enabled.

However as it is not doing it top to bottom, I'd say you have a definate bug.

I added a bug report to the IM examples bugs page
http://www.cit.gu.edu.au/~anthony/graph ... s/testing/
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

I have been told the above bug has now been fixed and will be in the next point release (6.2.6-6) of IM. Not sure when that will be though.

I am testing the alpha version for this fix now.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply