« Return to Thread: ICC on color picker

Re: ICC on color picker

by Jon Cruz :: Rate this Message:

Reply to Author | View in Thread


On Jun 23, 2009, at 6:13 AM, Alexandre Prokoudine wrote:

> On Tue, Jun 23, 2009 at 7:30 AM, Jon A. Cruz wrote:
>
>> When it grabs something else (from another app's window) we could
>> grab it as RGB, or we could possible find a current document stye
>> that contained the same one. The latter would be a more complex piece
>> to get right though.
>
> Hmmmm. Say, I have a bitmap in AdobeRGB which has a much wider gamut
> and I want to pick a color that is out of gamut for sRGB. What would
> Inkscape do in this case?

Simple. What *should* happen is

1) Inkscape has been tracking color spaces of images, and knows that  
the one under the cursor has an AdobeRGB profile attached.
2) It grabs the original values at that location (not the adjusted  
ones currently used for display)
3) It gets a nice combo of original and adjusted colors.

So if the original values are RGB and the ones adjusted for display  
are R'G'B', then the resulting fill would be similar to

fill: RGB icc-color(AdobeRGB, R', G', B')

(with numbers instead of "R", "G" and "B", of course)

Note that by going to the original numbers we avoid re-conversion  
rounding error creeping in. With 8-bit components that can become  
significant quickly.

------------------------------------------------------------------------------
Are you an open source citizen? Join us for the Open Source Bridge conference!
Portland, OR, June 17-19. Two days of sessions, one day of unconference: $250.
Need another reason to go? 24-hour hacker lounge. Register today!
http://ad.doubleclick.net/clk;215844324;13503038;v?http://opensourcebridge.org
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@...
https://lists.sourceforge.net/lists/listinfo/inkscape-devel

 « Return to Thread: ICC on color picker