Page 1 of 1


Posted: 2018-02-05T13:01:19-07:00
by rmabry
I think I'm doing what I'm told in the doc, but I'm getting an error. Doc says,
The EvaluateImages() method applies an arithmetic, logical or relational expression to a set of images. For example,

$p = $image->EvaluateImages('mean');

averages all the images associated with object $image.
But I get an error in the following script:

Code: Select all

use Image::Magick;
$images = new Image::Magick;

$notok = $images->Read("rose:", "rose:");  
die "on roses: $notok" if $notok;

printf("\$images contains %d rosey images\n", scalar(@$images));

$image = $images->EvaluateImages('mean');

print "I never get here and I don't even get a warning.\n";

Instead it dies without the warning with the following output:
$images contains 2 rosey images
Usage: Image::Magick::Q16HDRI::EvaluateImages(ref) at EvaluateImagesTest.plx line 9.
Is it me? I'm using ImageMagick 7.0.7-15 Q16 x86_64 2018-01-17 on Centos 6.9 with perl v5.10.1.


Re: EvaluateImages()

Posted: 2018-02-10T18:04:20-07:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ later today. The patch will be available in the beta releases of ImageMagick @ by sometime tomorrow.