P
PB
I am using PerlMagick to automate image resizing and resampling. The
problem is that every time I try to use one of the Image::Magick
functions, Perl crashes. Here is an example of the code I am trying to
run:
use Image::Magick;
$image = Image::Magick->new;
open( INFILE, "c:/dir/source-file.jpg" ) or die "Could not open the
file: $!\n";
$image->Read( file=>\*INFILE );
close INFILE;
$image->resize( geometry=>'288x384', support=>'.1' );
open( OUTFILE, ">output-file.jpg" );
$image->Write(file=>\*OUTFILE, filename=>'output-file.jpg');
close( OUTFILE );
undef $image;
__END__
When run, this code causes a "Perl Command Line Interpreter has
encountered a problem and needs to close" window and Windows XP wants
to send an error report to MS. I can see in the dump linked from this
window that there are errors right down to the kernel, so I suspect
that this is an issue with my installation of ImageMagick (I am using
the binary ImageMagick-6.2.5-5-Q16-windows-dll on Windows XP Pro), or
Perl (ActivePerl 5.8.7 Build 813). If that is the case, my post here is
simply to see if anyone else has had/knows of this problem.
Any help is greatly appreaciated.
problem is that every time I try to use one of the Image::Magick
functions, Perl crashes. Here is an example of the code I am trying to
run:
use Image::Magick;
$image = Image::Magick->new;
open( INFILE, "c:/dir/source-file.jpg" ) or die "Could not open the
file: $!\n";
$image->Read( file=>\*INFILE );
close INFILE;
$image->resize( geometry=>'288x384', support=>'.1' );
open( OUTFILE, ">output-file.jpg" );
$image->Write(file=>\*OUTFILE, filename=>'output-file.jpg');
close( OUTFILE );
undef $image;
__END__
When run, this code causes a "Perl Command Line Interpreter has
encountered a problem and needs to close" window and Windows XP wants
to send an error report to MS. I can see in the dump linked from this
window that there are errors right down to the kernel, so I suspect
that this is an issue with my installation of ImageMagick (I am using
the binary ImageMagick-6.2.5-5-Q16-windows-dll on Windows XP Pro), or
Perl (ActivePerl 5.8.7 Build 813). If that is the case, my post here is
simply to see if anyone else has had/knows of this problem.
Any help is greatly appreaciated.