CakeFest 2024: The Official CakePHP Conference

Imagick::setImageDepth

(PECL imagick 2, PECL imagick 3)

Imagick::setImageDepth画像の深度を設定する

説明

public Imagick::setImageDepth(int $depth): bool

画像の深度を設定します。

パラメータ

depth

戻り値

成功した場合に true を返します。

エラー / 例外

エラー時に ImagickException をスローします。

add a note

User Contributed Notes 1 note

up
-8
kehrigan at gmail dot com
9 years 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