Color profiles and pigment

Cyrille Berger cberger at cberger.net
Sun Oct 28 15:04:36 CET 2007


Hi,

One of the last remaining design issue in pigment lies around KoColorProfile. 
The goal is to use it to set some parameters which are specific to a paint 
device, but are essential to some color transformation (like exposure for 
HDR, or the palette for indexed images layers). The problem is that a 
KoColorProfile object can be shared between different KoColorSpace which can 
be shared between different KisPaintDevice. So changing a parameter in a 
KoColorProfile is going to have side effect. So basically, the idea is to 
have one instance of each KoColorProfile for each paint device.

I see two ways of fixing this:
 - separate KoColorSpace and KoColorProfile, and have only one instance of 
KoColorSpace, with multiple instance of KoColorProfile
 - the alternative is to "clone" the color space and it's profile when 
creating the paint device

I shall add, that what can be shared between color profile (like ICC 
cmsProfile) should be shared, no matter the final solution.

-- 
Cyrille Berger


More information about the kimageshop mailing list