Bug 94222

Summary: color profile lost
Product: cairo Reporter: santosh <santosh.katakam>
Component: pdf backendAssignee: Adrian Johnson <ajohnson>
Status: RESOLVED INVALID QA Contact: cairo-bugs mailing list <cairo-bugs>
Severity: normal    
Priority: medium    
Version: 1.12.16   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description santosh 2016-02-19 21:23:50 UTC
hello team,

I am using Cairo to rendering a pdf assembling various other PNGs, JPEG images, drawings etc. What I am seeing is that the cairo is dropping the colour profile of the original asset. Can you please help me understand how I could retain the original colour profiles.

Secondly, I would like to set the DPI to 300. But I am unable to do it, can you please help me achieve this.
Comment 1 Adrian Johnson 2016-02-20 22:04:21 UTC
The best place for asking questions is the mailing list at http://www.cairographics.org/lists/

(In reply to santosh from comment #0)
> hello team,
> 
> I am using Cairo to rendering a pdf assembling various other PNGs, JPEG
> images, drawings etc. What I am seeing is that the cairo is dropping the
> colour profile of the original asset. Can you please help me understand how
> I could retain the original colour profiles.

Cairo does not support colour profiles and there are no plans to do so.

> Secondly, I would like to set the DPI to 300. But I am unable to do it, can
> you please help me achieve this.

cairo_surface_set_fallback_resolution() sets the fallback resolution. The default is already 300PPI.
Comment 2 santosh 2016-02-22 06:30:01 UTC
Thank you so for your response.

One small clarification. When you say Cairo doesn't support colour profile, does it mean that it would drop the colour profile of the images that are going into PDF? Or it wouldn't take any action?

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.