[sane-devel] [PATCH 3/3] Avoid attaching grayscale ICC profiles to rgb images, or vice-versa.

Aaron Muir Hamilton aaron at correspondwith.me
Mon May 1 23:36:28 UTC 2017

I just tried it by hacking scanimage up a bit to threshhold and convert
the lines to monochrome right before writing the PNG, and change the PNG
header to always be 1-bit; libpng didn't complain about attaching a
grayscale profile to a 1-bit monochrome image.

More information about the sane-devel mailing list