(PECL imagick 2 >= 2.3.0, PECL imagick 3)
Imagick::remapImage — Remaps image colors
public 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. This method is available if Imagick has been compiled against ImageMagick version 6.4.5 or newer.
replacementAn Imagick object containing the replacement colors
DITHERRefer to this list of dither method constants
Returns true on success.
Throws ImagickException on error.
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/imagick.remapimage.php