Intervention / image

PHP Image Processing
https://image.intervention.io
MIT License
13.85k stars 1.5k forks source link

Add control for bit depth of images #1258

Closed olivervogel closed 5 months ago

olivervogel commented 8 months ago

Describe the feature you'd like

Ability to get and set the bit depth of images. Is possible with Imagick, most likely not with GD.

Get bit depth of the current image

$depth = $image->bitDepth(); // 8

Set bit depth of the current image

$image->setBitDepth(16);

This could perhaps be better accommodated in the encoding process. See #1259

olivervogel commented 5 months ago

See https://github.com/Intervention/image/issues/1259