png output with Colorspace Gray
See original GitHub issueWhen packing an image to PNG, sRGB is produced:
Colorspace: sRGB
Depth: 8/1-bit
Channel depth:
Red: 1-bit
Green: 1-bit
Blue: 1-bit
Colors: 2
It would be great to have the ability to generate Gray colorspace PNG images:
Colorspace: Gray
Depth: 8/1-bit
Channel depth:
Gray: 1-bit
Colors: 2
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How can I force Imagemagick to output a grayscale image in ...
How to preserve sRGB colorspace? EDIT: Just realized I'm drawing a clear pixel on top, so the image shouldn't change, yet it still...
Read more >Accurate Color Management - ImageMagick
A majority of the image formats assume an sRGB colorspace (e.g. JPEG, PNG, etc.). A few support only linear RGB (e.g. EXR, DPX,...
Read more >PNG (Portable Network Graphics) Specification, Version 1.2
A grayscale pixel is represented by a single sample that is a grayscale level, where zero is black and the largest value for...
Read more >RGB color space not permitted on grayscale
convert linkedList.pdf -quality 300 -colorspace RGB output.png. With the PDF I used the resulting images look the same, whether I use the ...
Read more >Convert PNG to Grayscale - Online PNG Maker
This example grayscales a PNG image of rusty discs using custom RGB color channel weights that are all set to one, resulting in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
v0.29.1 now available with this fix, thanks for reporting.
Commit https://github.com/lovell/sharp/commit/3402656ec54c133b4b3da526fe60924ddbd057ab should fix this, and will be in v0.29.1