possible bug -distort perspective IM 6.6.0-4

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

possible bug -distort perspective IM 6.6.0-4

Post by fmw42 »

IM 6.6.0-4 Q16 Mac OSX Tiger

I had a complaint today that my 3Drotate script was not functioning correctly and confirm that is true. It appears to be due to -distort perspective and likely with either -virtual-pixel or -mattecolor as the surroundings of the perspective warp are not black as expected.

Source Image:
Image

Here is my image for a tilt=45 degrees from the 3Drotate script as originally working properly.

3Drotate tilt=45 mandril.jpg mandril_t45_orig.jpg
Image


Here is the same thing with IM 6.6.0-4
Here is my image for a tilt=45 degrees from the 3Drotate script as originally working properly.

3Drotate tilt=45 mandril.jpg mandril_t45.jpg
Image


And here it is using the equivalent IM commands only:
convert mandril.jpg -virtual-pixel background -background black -mattecolor black -distort Perspective "0,0 13,28 127,0 113,28 127,127 149,124 0,127 -22,124" mandril_perspect_t45.jpg
Image

Could you look into this, please.

Thanks.

Fred

P.S. Seems to have occurred sometime after IM 6.5.1-0 (as someone tested it on that version and it still works correctly)
Last edited by fmw42 on 2010-03-31T10:09:31-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug -distort perspective IM 6.6.0-4

Post by magick »

We can reproduce the problem and have a patch in ImageMagick 6.6.0-5 available by sometime tomorrow. Thanks.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug -distort perspective IM 6.6.0-4

Post by fmw42 »

Thanks.

I will try to test tomorrow all the recent various issues that I have raised and for which you feel you have patches, once I see the beta has been updated or if you let me know when they have all been updated in the beta.

-distort perspective
-fx jinc
-evaluate-sequence min
-roll segment fault

Fred
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: possible bug -distort perspective IM 6.6.0-4

Post by magick »

You can grab ImageMagick 6.6.0-5 Beta now from ftp://magick.imagemagick.org/pub/ImageMagick/beta.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: possible bug -distort perspective IM 6.6.0-4

Post by fmw42 »

magick wrote:You can grab ImageMagick 6.6.0-5 Beta now from ftp://magick.imagemagick.org/pub/ImageMagick/beta.
-distort perspective and 3Drotate now give correct results (same as my original results)

Thanks.

Fred
Post Reply