Closed zdohnal closed 10 months ago
This patch is not correct. It checks if the printer is monochrome and in that case it simply sets 8-bit sGray as color space, regardless of any attributes or command line options which could ask for other monochrome color spaces, like bi-level or 16-bit sGray.
There were several bugs in the code to select the color space and I have fixed them with c6175a2f
Closing this pull request ...
But thanks anyway, for it, and especially for pointing out that the bug was at this place ...
We didn't check whether the device is GrayScale only and set the raster header as color device unless options or job attributes contain monochrome settings.
After the fix, this happen only if
color-supported
is true, otherwise grayscal color space is set.Fixes #38