Imagick::remapImage
PHP function
Edit on GitHub ✎
(PECL imagick 2 >= 2.3.0, PECL imagick 3)
Remaps image colors
Description
Imagick::remapImage(Imagick $replacement, int $DITHER): bool
Replaces colors an image with those defined by replacement. The colors are replaced with the closest possible color. 0x645
Parameters
replacementAn Imagick object containing the replacement colors
DITHERRefer to this list of dither method constants
Return Values
Success
Errors/Exceptions
Throws