--TEST-- Test Imagick, chopImage --SKIPIF-- --FILE-- newPseudoImage(640, 480, "magick:logo"); $imagick->chopImage($width, $height, $startX, $startY); $bytes = $imagick->getImageBlob(); if (strlen($bytes) <= 0) { echo "Failed to generate image.";} } chopImage($startX, $startY, $width, $height) ; echo "Ok"; ?> --EXPECTF-- Ok