1--TEST--
2Test Imagick, Imagick::evaluateImages
3--SKIPIF--
4<?php
5$imageMagickRequiredVersion=0x687;
6require_once(dirname(__FILE__) . '/skipif.inc');
7?>
8--FILE--
9<?php
10
11$imagick = new \Imagick();
12$imagick->newPseudoImage(256, 256, "gradient:black-white");
13
14$imagick2 = new \Imagick();
15$imagick2->newPseudoImage(256, 256, "gradient:red-white");
16
17$imagick->addImage($imagick2);
18$imagick->setImageFormat('png');
19
20$imagick->setIteratorIndex(0);
21
22$evaluated = $imagick->evaluateImages(\Imagick::EVALUATE_MEAN);
23
24$evaluated->setImageFormat('png');
25// $evaluated->writeImage("./evaluateTest.png");
26$data = $evaluated->getImageBlob();
27
28if (strlen($data) < 50) {
29	echo "Image data seems too short.";
30}
31
32echo "Ok";
33?>
34--EXPECTF--
35Ok