--TEST-- Test Imagick, quantizeImage --SKIPIF-- --FILE-- newPseudoImage(640, 480, "magick:logo"); $imagick->quantizeImage($numberColors, $colorSpace, $treeDepth, $dither, false); $imagick->setImageFormat('png'); $bytes = $imagick->getImageBlob(); if (strlen($bytes) <= 0) { echo "Failed to generate image.";} } quantizeImage($numberColors, $colorSpace, $treeDepth, $dither) ; echo "Ok"; ?> --EXPECTF-- Ok