PHP 5.6.24 is released


(No version information available, might only be in Git)

Imagick::recolorImageRecolors image


bool Imagick::recolorImage ( array $matrix )

Translate, scale, shear, or rotate image colors. This method supports variable sized matrices but normally 5x5 matrix is used for RGBA and 6x6 is used for CMYK. The last row should contain the normalized values. Questo metodo è disponibile se Imagick è stato compilato con ImageMagick versione 6.3.6 o successive.

Elenco dei parametri


The matrix containing the color values

Valori restituiti

Restituisce TRUE in caso di successo.

Vedere anche:

add a note add a note

User Contributed Notes 1 note

softmixt at gmail dot com
3 years ago
Simple example :


= new Imagick('test.jpg');

$CMYK_color_model = array(0,100,0,0);

$image->recolorImage($CMYK_color_model) ;

header('Content-type: image/jpg');

To Top