--TEST-- Test importimagepixels --SKIPIF-- --FILE-- newImage($width, $height, 'gray'); /* Import the pixels into image. width * height * strlen("RGB") must match count($pixels) */ $im->importImagePixels(0, 0, $width, $height, "RGB", Imagick::PIXEL_CHAR, $pixels); var_dump($width, $height); var_dump($im->getImageGeometry()); ?> --EXPECTF-- int(100) int(100) array(2) { ["width"]=> int(100) ["height"]=> int(100) }