1--TEST--
2Test Imagick, solarizeImage
3--SKIPIF--
4<?php
5$imageMagickRequiredVersion=0x675;
6require_once(dirname(__FILE__) . '/skipif.inc');
7?>
8--FILE--
9<?php
10
11$solarizeThreshold = 0.2;
12
13function solarizeImage($solarizeThreshold) {
14    $imagick = new \Imagick();
15    $imagick->newPseudoImage(640, 480, "magick:logo");
16    $imagick->solarizeImage($solarizeThreshold * \Imagick::getQuantum());
17    $bytes = $imagick->getImageBlob();
18    if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
19}
20
21solarizeImage($solarizeThreshold) ;
22echo "Ok";
23?>
24--EXPECTF--
25Ok