PHP 5.6.16 is available


(PECL imagick 2.0.0)

Imagick::setImageDepthConfigure la profondeur de l'image


bool Imagick::setImageDepth ( int $depth )

Configure la profondeur de l'image.

Liste de paramètres


Valeurs de retour

Retourne TRUE en cas de succès.

Erreurs / Exceptions

Lance une exception ImagickException si une erreur survient.

add a note add a note

User Contributed Notes 1 note

kehrigan at gmail dot com
1 year ago
Depth is a number in terms of bits. Floats seem to be accepted.

From the ImageMagick documentation:
"This the number of bits in a color sample within a pixel. Use this option to specify the depth of raw images whose depth is unknown such as GRAY, RGB, or CMYK, or to change the depth of any image after it has been read."
To Top