array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'gmagick.quantizeimage.php', 1 => 'Gmagick::quantizeimage', 2 => 'Analyzes the colors within a reference image', ), 'up' => array ( 0 => 'class.gmagick.php', 1 => 'Gmagick', ), 'prev' => array ( 0 => 'gmagick.profileimage.php', 1 => 'Gmagick::profileimage', ), 'next' => array ( 0 => 'gmagick.quantizeimages.php', 1 => 'Gmagick::quantizeimages', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/gmagick/gmagick/quantizeimage.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL gmagick >= Unknown)
Gmagick::quantizeimage — Analyzes the colors within a reference image
$numColors,$colorspace,$treeDepth,$dither,$measureErrorAnalyzes the colors within a reference image and chooses a fixed number of colors to represent the image. The goal of the algorithm is to minimize the color difference between the input and output image while minimizing the processing time.
numColorscolorspacetreeDepthdithermeasureErrorThe Gmagick object on success
Throws an GmagickException on error.