For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > July 2004 > PerlMagick: Exception 410: no images defined `Scale'









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author PerlMagick: Exception 410: no images defined `Scale'
James Thornton

2004-07-15, 3:56 pm

I installed PerlMagick 6.02 from source on Redhat Enterprise 3, and
when using a script to scale a batch of images, which may or may not
be corrupted, the script aborts with the following error:

Exception 410: no images defined `Scale'

Am I not catching it properly, or is this a bug?

Here's a code snippet...

eval {
$x = $imageHandle->Read($filepath);

if ($x) {
print "Error?: $x\n";
$image_id = 0;
return $image_id;
}

#open(IMAGE,$filepath) or next;
#$imageHandle->Read(file=>\*IMAGE);
#close(IMAGE);

$imageHandle->Scale('100X100');
($height,$width) = $imageHandle->Get('height','width');
}
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com