Change in PerlMagick causing core dump

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
Ryland

Change in PerlMagick causing core dump

Post by Ryland »

My Perl scripts were working before under 6.4.1, but my web host updated IM to 6.4.6 and now the script is throwing the following error:

Code: Select all

perl: magick/distort.c:408: GenerateCoefficients: Assertion `! "Unknown Method Given"' failed.
Here's the code I use:

Code: Select all

$content->Distort('virtual-pixel'=>"transparent", type=>"Perspective", points=>[88,50,85,52, 88,215,88,216, 305,50,304,49, 305,215,307,214]);
This code worked perfectly before, but it causes a core dump after the update to 6.4.6. Has there been a change in the API?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Change in PerlMagick causing core dump

Post by magick »

Use method=>'Perspective' rather than type=>'Perspective'.
Ryland

Re: Change in PerlMagick causing core dump

Post by Ryland »

That worked, thanks.
Post Reply