1--TEST--
2Test Imagick, equalizeImage
3--SKIPIF--
4<?php
5$imageMagickRequiredVersion=0x675;
6require_once(dirname(__FILE__) . '/skipif.inc');
7?>
8--FILE--
9<?php
10
11
12//This appears to corrupt the image colors?
13function extentImage($startX, $startY, $width, $height) {
14    $imagick = new \Imagick();
15    $imagick->newPseudoImage(640, 480, "magick:logo");
16    $imagick->equalizeImage();
17    $imagick->extentImage(
18        $startX, $startY, $width, $height
19    );
20
21    $bytes = $imagick->getImageBlob();
22    if (strlen($bytes) <= 0) { echo "Failed to generate image.";}
23}
24$startX = 50;
25$startY = 50;
26$width = 150;
27$height = 150;
28
29extentImage($startX, $startY, $width, $height) ;
30echo "Ok";
31?>
32--EXPECTF--
33Ok