Page 1 of 1

Compare function

Posted: 2010-11-12T07:38:09-07:00
by gregmatthews
Hi
I'm running a script that used to work on my Win32 PC, but doesn't on my Win64.
I've installed ImageMagick-6.6.5-Q16 (64bit), and it works fine from the command line.
In the Perl script that works on the Win32 machine, most functions work in Win64 but I can't get Compare to work, I just get a "Bad File Descriptor" error.

$status = $tempimage->Compare(image=>$tempimage2, metric=>'rmse');
die "Error: $status, $!" if $status;

I can call other methods on $tempimage and $tempimage2 quite happily (e.g. Scale) and I can write to disk and they save fine.

Any ideas?

Re: Compare function

Posted: 2010-11-14T22:46:23-07:00
by anthony
Sounds like a problem earilier in yoru script where you read the image.

NOTE comparing requires you to have two images that are the exact same size.