On May 1, 2006, at 1:28 PM, bulia byak wrote:
On 5/1/06, Bryce Harrington <bryce@...961...> wrote:
ICC Preview
Jon Cruz is working on this. Plans to have feature to a finished point for the release.
CMYK support
Jon Cruz is working on this. Plans to have feature to a finished point for the release.
What exactly is this, apart from the existing ICC support for bitmaps? Just curious.
Well... now that we have <color-profile> support, we can add things to paint specifications.
Here's a base example drawn from some file I found on an examples page:
<text x="25" y="100" font-family="Verdana" font-size="20" fill="steelblue icc-color(cmyk, 0.8, 0.1745, 0.098, 0.2)">Happy Happy Print People</text>
The code for parsing that fill, and specifically for parsing the icc- color part, is in. There are a few things (mainly with the color choosers) that use a union in the paint spec instead of a few fields and flags. That is, the current code assumed you might have a color name *or* an icc-color part, but not that you might want both, which is what the spec gives.
Peter was working on purging that union. Once that's done, we will then be able to have full color support, including recalculating the rgb version (falling back to named values when present) as the icc values are changed. We probably won't have a lot of support in the UI, but it should give those people who care about print output the ability to use CMYK color for target printers.
And as far as ICC Preview goes, we can easily chain a profile for "your current display" along with one for "the target device" and get a preview of how things will look on something other than your box. (The calls are basically those used for the current <image> support). Oh, and the calls also allow for flagging out of gamut colors.