[cairo] Cairo color profile management
ajohnson at redneon.com
Mon Feb 22 10:40:19 UTC 2016
On 22/02/16 17:17, Santosh.katakam wrote:
>> I am using cairo to create a PDF using multiple JPEGs and PNGs, I am trying to understand how to retain/untouch the colour profile of the original images.
>> From my previous posts, I get to understand that Cairo doesn't support colour profile management. However, I would like to understand whether it drops the colour profile of all the images that are used for PDF generation.
Cairo does not read or use any color profile in PNG files. If you embed
a JPEG in PDF output using cairo_surface_set_mime_data(), the JPEG file
is embedded in the PDF. I don't see any mention of color profiles in
JPEG in PDF32000 so I assume you will not get any color profiles in the PDF.
More information about the cairo