rotating images more than 45 deg gives torn results

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
aberkl
Posts: 45
Joined: 2009-06-29T03:53:05-07:00
Authentication code: 8675309
Location: Germany/Munich

rotating images more than 45 deg gives torn results

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: rotating images more than 45 deg gives torn results

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: rotating images more than 45 deg gives torn results

Post 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.
aberkl
Posts: 45
Joined: 2009-06-29T03:53:05-07:00
Authentication code: 8675309
Location: Germany/Munich

Re: rotating images more than 45 deg gives torn results

Post 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
Post Reply