Page 1 of 1

rotate or STR about a coordinate not working at all

Posted: 2016-04-26T09:04:38-07:00
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????

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

Posted: 2016-04-26T09:31:23-07:00
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