-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
png output with Colorspace Gray #2855
Comments
https://sharp.pixelplumbing.com/api-colour#tocolourspace await sharp(input)
.toColourspace('b-w')
.toFile('8-bit-greyscale.png') |
Thanks for the reply. and if running:
I get sRGB back: The main issue I try to tackle is that I fail to find a way to re-encode the following input PNG configuration without it being inflated significantly in size.
|
This example looks like a bug, ostensibly in libvips as However |
Commit 3402656 should fix this, and will be in v0.29.1 |
v0.29.1 now available with this fix, thanks for reporting. |
When packing an image to PNG, sRGB is produced:
It would be great to have the ability to generate Gray colorspace PNG images:
The text was updated successfully, but these errors were encountered: