doc-en icon indicating copy to clipboard operation
doc-en copied to clipboard

quantizeImage/quantizeImages details incorrect/lacking

Open sudofox opened this issue 3 years ago • 1 comments

From manual page: https://php.net/imagick.quantizeimage


"Imagick::quantizeImage — Analyzes the colors within a reference image"

This isn't correct, nothing is being analyzed, and no analysis is returned. Rather, it reduces the number of colors in the image. Perhaps it does some analysis in order to do so.... This method seems quite finicky, so it's probably worth adding in some actual documentation about what it does.

sudofox avatar Jun 13 '22 22:06 sudofox

Oh, indeed, that doc page needs an overhaul. https://phpimagick.com/Imagick/quantizeImage?colorspace=RGB&number_colors=64&tree_depth=1&dither=Enabled&image_path=Lorikeet might be helpful (note that the dither flag is apparently inversed; cc @Danack).

cmb69 avatar Jun 14 '22 10:06 cmb69