Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add control for bit depth of images #1258

Closed
olivervogel opened this issue Jan 9, 2024 · 1 comment
Closed

Add control for bit depth of images #1258

olivervogel opened this issue Jan 9, 2024 · 1 comment

Comments

@olivervogel
Copy link
Member

olivervogel commented Jan 9, 2024

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
Copy link
Member Author

See #1259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant