Page 1 of 1
possible bug -draw with translate IM 6.6.6.1
Posted: 2010-12-01T11:44:20-07:00
by fmw42
IM 6.6.6.1 Q16 (hdri) Mac OSX Tiger
The translate in -draw does not seem to be honoring the x coordinate. I believe this is causing my pagecurl script to fail as reported by Anthony.
convert -size 256x256 xc:white \
-fill red -draw "translate 86,172 rotate 31 ellipse 0,0 41,41 0,360" ellipse_test.png
Re: possible bug -draw with translate IM 6.6.6.1
Posted: 2010-12-01T12:18:17-07:00
by magick
We can reproduce the problem you posted and will have a patch in ImageMagick 6.6.6-2 available by sometime tomorrow. Thanks.
Re: possible bug -draw with translate IM 6.6.6.1
Posted: 2010-12-01T19:46:45-07:00
by anthony
As a FYI the problem was not the X coordinate, but the order of affine matrix multiplications internally in Draw when it merged the translate and the rotation of the drawing coodinates.
The correct result was obtained using..
Code: Select all
convert -size 256x256 xc:white -fill red -draw "rotate 31 translate 86,172 ellipse 0,0 41,21 0,360" show:
However that is only because the order was swapped, which is WRONG. The above ordering is not the correct solution, as you should translate origin before rotating the image around that new origin.
Thanks to Fred for tracking down the bug in 'pagecurl', and thanks to Cristy for fixing it.
Re: possible bug -draw with translate IM 6.6.6.1
Posted: 2010-12-02T14:10:19-07:00
by fmw42
Thanks. Seems to be working correctly now in IM 6.6.6.2.
Note the changelog shows 6.6.6.1 (but I believe it was not working then).