ActivePerl-5.16.3.1603-MSWin32-x86-296746.msi
ImageMagick-6.8.4-4-Q8-x86-dll.exe (btw I cannot get PerlMagick from ImageMagick-6.8.4-5-Q8-x86-dll.exe or ImageMagick-6.8.4-6-Q8-x86-dll.exe to work with my Windows 2003 Server )
after I construct an image and write it to disk,
I can run from command line:
Code: Select all
convert d:/temp/after.gif -virtual-pixel white -distort Affine "0,1,0,0,255,254,255,255" d:/temp/distort.png
Code: Select all
#perl
use Image::Magick;
my $image=Image::Magick->new;
my $error = '';
$error = $image->ReadImage('d:/temp/after.gif'); die "ImageMagick error $error" if $error;
$error = $image->Distort('virtual-pixel'=>"white", type=>"Affine",
points=>[0,1,0,0, 255,254,255,255] );
die "ImageMagick Distort error $error" if $error;
my $type='png';
$error = $image->Set(magick=>"$type"); die "ImageMagick error $error" if $error;
$image->Write('d:/temp/distort.png'); die "ImageMagick error $error" if $error;
Any help is greatly appreciated.ImageMagick Distort error Exception 400: memory allocation failed GenerateCoefficients @ error/distort.c/GenerateCoefficients/506 at testDistort.txt line 15.
A B Jones