W3C home > Mailing lists > Public > public-fx@w3.org > January to March 2012

Re: [css-filters] linearRGB vs sRGB

From: Chris Lilley <chris@w3.org>
Date: Tue, 7 Feb 2012 02:21:01 +0100
Message-ID: <1487616775.20120207022101@w3.org>
To: Rik Cabanier <cabanier@gmail.com>
CC: public-fx@w3.org
On Tuesday, February 7, 2012, 12:05:42 AM, Rik wrote:

RC> All,
RC> currently the SVG spec states that by default, all filtering
RC> operations should happen in linearRGB:
RC> http://www.w3.org/TR/SVG/painting.html#ColorInterpolationProperties 

RC> If you want the filtering to happen in sRGB, you need to specify
RC> 'color-interpolation-filters: sRGB'


RC> My question is, can you do this with the shorthand CSS filters as well?
RC>  I believe the opacity, brightness and contrast filters should
RC> happen in sRGB and if the 'color-interpolation-filters' attribute
RC> in not supported, there is no way to get that behavior.

You may be right, but could you explain why those three should use companed sRGB rather than a light-linear space for computation?

(And you are correct that the 'color-interpolation-filters' property should either be directly supported in the shorthand syntax, or alternatively each shorthand should state what the effective value of 'color-interpolation-filters' is - as well as giving the equivalent element-based filter syntax that corresponds to the shorthand.

 Chris Lilley   Technical Director, Interaction Domain                 
 W3C Graphics Activity Lead, Fonts Activity Lead
 Co-Chair, W3C Hypertext CG
 Member, CSS, WebFonts, SVG Working Groups
Received on Tuesday, 7 February 2012 01:24:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 22 June 2015 03:33:46 UTC