Page 1 of 1

rotating images more than 45 deg gives torn results

Posted: 2011-09-25T00:24:24-07:00
by aberkl
I am using ImageMagick 6.7.2-8 2011-09-23 Q16 on Windows XP.

When rotating images I get torn images (black stripes) for a certain range of angles. I also had a couple of crashes but they seem not to be reproducible.

Code: Select all

convert rose: -rotate 45 rotate45.jpg   -> good
convert rose: -rotate 46 rotate46.jpg   -> bad
convert rose: -rotate 90 rotate90.jpg   -> bad
convert rose: -rotate 135 rotate135.jpg -> bad
convert rose: -rotate 136 rotate136.jpg -> good
Best,
Andreas

Re: rotating images more than 45 deg gives torn results

Posted: 2011-09-25T11:28:11-07:00
by fmw42
All your (bad) rotations above 45 degrees work fine for me on IM 6.7.2.8 Q16 Mac OSX Tiger. So it must be a windows specific issue or something odd with your IM install or environment.

Re: rotating images more than 45 deg gives torn results

Posted: 2011-09-25T14:05:55-07:00
by magick
We can reproduce the problem you reported. It appears to be threading race condition in the shearing algorithm. We'll provide a fix in the next point release of ImageMagick. Thanks.

Re: rotating images more than 45 deg gives torn results

Posted: 2011-09-26T13:45:11-07:00
by aberkl
Hi magick,

As usual: thanks for the fast fix - ImageMagick 6.7.2-9 2011-09-23 on Windows XP works as expected.

Best, Andreas