PHP 5.5.16 is released

Imagick::setImageDepth

(PECL imagick 2.0.0)

Imagick::setImageDepthEstablece la profundidad de una imagen

Descripción

bool Imagick::setImageDepth ( int $depth )

Establece la profundidad de una imagen.

Parámetros

depth

Valores devueltos

Devuelve TRUE en caso de éxito.

Errores/Excepciones

Lanza ImagickException en caso de error.

add a note add a note

User Contributed Notes 1 note

up
0
kehrigan at gmail dot com
30 days 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