Grayscale too dark
Posted: 2016-04-15T13:19:07-07:00
Once again the same issue. Convering grayscale PNM to PNG makes the image dark. Apparently messed up colorspace conversion (linear vs. non linear).
All I want is the EXACT pixel values in the PNM to also be available in the PNG.
I've found
This: viewtopic.php?f=4&t=21269
and this: https://www.imagemagick.org/discourse-s ... hp?t=21275
However, no solutions proposed in those threads of work for me:
convert in.pnm -colorspace sRGB out.png
convert in.pnm -colorspace RGB -colorspace out.png
out.png is always darker.
Current shitty workaround:
convert in.pnm -gamma 2.2002200220022003 out.png
where 2.2 is 1 / 0.4545. While this is close, it doesn't give me the exact pixel values. I really, really, really, really need the EXACT values, no conversion nonsense. How can I do this? I would like to attach example files, but apparently I can't in this forum...
All I want is the EXACT pixel values in the PNM to also be available in the PNG.
I've found
This: viewtopic.php?f=4&t=21269
and this: https://www.imagemagick.org/discourse-s ... hp?t=21275
However, no solutions proposed in those threads of work for me:
convert in.pnm -colorspace sRGB out.png
convert in.pnm -colorspace RGB -colorspace out.png
out.png is always darker.
Current shitty workaround:
convert in.pnm -gamma 2.2002200220022003 out.png
where 2.2 is 1 / 0.4545. While this is close, it doesn't give me the exact pixel values. I really, really, really, really need the EXACT values, no conversion nonsense. How can I do this? I would like to attach example files, but apparently I can't in this forum...