Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
raster.c: Always use sRGB/sGray if driver is PWG/URF and RGB/Gray is …
…requested (#51) Some driverless printers (EPSON L3160 in Fedora report) stopped working after commit c6175a2 if `ColorModel=RGB` is passed as option. A different CUPS color space is assigned with the fix - CUPS_CSPACE_RGB, which results in no ICC profile being assigned into Ghostscript command line. Probably we can try other .icc profiles with CUPS_CSPACE_RGB (srgb.icc does not work with RGB color space), but I tested with reporter that using sRGB space + srgb.icc works for the printer - so the patch is to use sRGB if the driver is URF/PWG. Same logic applied for grayscale printing, if Gray is requested, sGray is used for URF/PWG.
- Loading branch information