Page 1 of 1

Change in PerlMagick causing core dump

Posted: 2008-12-02T16:23:03-07:00
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?

Re: Change in PerlMagick causing core dump

Posted: 2008-12-02T18:00:34-07:00
by magick
Use method=>'Perspective' rather than type=>'Perspective'.

Re: Change in PerlMagick causing core dump

Posted: 2008-12-02T18:15:08-07:00
by Ryland
That worked, thanks.