question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

png output with Colorspace Gray

See original GitHub issue

When 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:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lovellcommented, Sep 7, 2021

v0.29.1 now available with this fix, thanks for reporting.

0reactions
lovellcommented, Aug 26, 2021
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found