omicronpersei8 imagemagick.org wrote:
>> Sometimes this evals to -1 and other times to
1280263007
>>
>
> Is there a command line or code snippet we can run thay
reliably reproduces
> the problem? If so we can track down the source of the
problem and fix it.
>
Yeah sure... this code fails with for imagemagick versions
6.2.3
through 6.3.3, and it also fails on GraphicsMagick 1.1.7.
Perl version
v5.8.0.
my $image1 = Image::Magick->new;
open(IMAGE1, $fSave);
my $imError = $image1->Read(file=>*IMAGE1);
close(IMAGE1);
if ($imError) { errUser("MAGICK DIED READING
$imError with $strDebug"); }
my $dx1_small = 100;
my $dy1_small = 100;
$imError = $image1->Resize(width=>$dx1_small,
height=>$dy1_small);
if ($imError) { errUser("MAGICK DIED RESIZING
$imError with $strDebug"); }
open(IMAGE2, ">$fSave");
$imError = $image1->Write(file=>*IMAGE2,
filename=>$fSave);
close(IMAGE2);
if ($imError) { errUser("MAGICK DIED WRITING
$imError with $strDebug"); }
undef $image1;
_______________________________________________
Magick-bugs mailing list
Magick-bugs imagemagick.org
http://studio.imagemagick.org/mailman/listinfo/magick-
bugs
|