} else if (!cm_disabled &&
outformat == OUTPUT_FORMAT_PCLM) {
/* Set standard output ICC profile sGray/sRGB */
- if (h.cupsColorSpace == CUPS_CSPACE_SW)
+ /*if (h.cupsColorSpace == CUPS_CSPACE_SW)
cupsArrayAdd(gs_args, strdup("-sOutputICCProfile=sgray.icc"));
- else if (h.cupsColorSpace == CUPS_CSPACE_SRGB)
+ else if (h.cupsColorSpace == CUPS_CSPACE_SRGB)*/
+ /* Note that Ghostscript can only output PCLm with its "pclm" device
+ in 8-bit sRGB, not in grayscale, so we always use the sRGB color
+ profile for now.
+ It is not possible to convert to grayscale by applying the gray
+ color profile on GhostScript's "pclm" device, see
+ https://bugs.ghostscript.com/show_bug.cgi?id=705014
+ We eill need an additional output device, like "pclm8", if we
+ want grayscale PCLM output, see
+ https://bugs.ghostscript.com/show_bug.cgi?id=705035 */
cupsArrayAdd(gs_args, strdup("-sOutputICCProfile=srgb.icc"));
}
else if (!cm_disabled)