rotate or STR about a coordinate not working at all

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
ardillo lambo
Posts: 1
Joined: 2016-04-25T17:50:58-07:00
Authentication code: 1151

rotate or STR about a coordinate not working at all

Post by ardillo lambo »

Hi
I used this script to rotate a needle 300 degrees for further processing

for /l %%x in (0, 1, 300) do (
echo %%x
convert needle.png -distort SRT %%x output/Needlerotated%%x.png
)

the output images are indeed rotated but not over a fixed point (coordinate), it is rotating about a small circle....how can this be fixed????
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: rotate or STR about a coordinate not working at all

Post by fmw42 »

I have moved this topic to the Users forum, since the Magick Scripting forum is a competely different topic related to XML imagemagick syntax. -distort SRT will rotate about the center of the image, if you do not provide a rotation center. See http://www.imagemagick.org/Usage/distorts/#srt
Post Reply