[Printing-architecture] Make use of extended color spaces on IPP printers
till.kamppeter at gmail.com
Sun May 30 21:50:26 UTC 2021
On 30/05/2021 22:53, Michael Sweet wrote:
> Yes, and there is a mechanism for that - the printer will add the document-unprintable-error value in job-state-reasons or return client-error-document-unprintable-error from the Print-Job/Send-Document request. Then CUPS will re-print as raster.
Is this already implemented in CUPS? So if I send a JPEG to CUPS and the
printer which supports JPEG chokes on my JPEG then CUPS sees the error
and retries the job in raster (which probably lets the imagetoraster
filter being used)?
Is this only implemented for JPEG? Or does CUPS go from one
*cupsfilter(2): line in the PPD to the next until the printer does not
error any more?
>>> A PDF file (raster or otherwise) has color space information encoded as resources for the pages in the file. If an application actually supports different color spaces, then it should preserve the color space when printing and then the print pipeline needs to avoid doing extra conversions (Ghostscript does this, for example).
>> In any PDF I only find /DeviceRGB, never /AdobeRGB.
> You will never see "AdobeRGB" or "sRGB" in the PDF file, you will see an ICC based color space or a calibrated color space (/CalRGB or /CalGray) with suitable parameters.
Which parameters? Ids it documented somewhere how I can identify PDFs
(or elements in them) as sRGB or AdobeRGB?
>> I even tried to generate PDFs in AdobeRGB with digikam and with darktable, printing an AdobeRGB JPEG (from my camera) and fiddling around with print dialog settings, but I always get files with only /DeviceRGB.
> I'm guessing that Cairo is only writing out device RGB... Which is wrong, of course.
OK, but this would defeat the sophisticated color management options of
digikam and darktable. So I hope that they do not actually use Cairo.
>> Do you know how I can get appropriate PDF files for testing? Are there somewhere sample files for download? Is there a recipe how to turn an AdobeRGB JPEG into an AdobeRGB PDF under Linux?
> I will shortly have the necessary changes in pdfio (https://www.msweet.org/pdfio) to be able to embed a JPEG or PNG file in a PDF file with the expected calibrated color spaces.
This is new as of today? What are the differences to QPDF? QPDF I use
heavily in cups-filters and I have got some students adding features to it.
More information about the Printing-architecture