W3C home > Mailing lists > Public > www-svg@w3.org > February 2009

SVG Masking and different implementations

From: Dirk Schulze <vbs85@gmx.de>
Date: Sat, 14 Feb 2009 20:35:59 +0100
To: www-svg@w3.org
Message-Id: <1234640159.21302.13.camel@dirk-laptop>

I tried
http://trac.webkit.org/export/40986/trunk/LayoutTests/svg/custom/grayscale-gradient-mask.svg on different svg-viewers/browsers and find that the drawing of Opera, librsvg, Incscape differs to firefox, Safari, Batik.
If you look to the source of that SVG, you'll notice, that the alpha
channel is 255 and has no affect on the masking, therefore premultiplied
or unpremultiplied doesn't care here.
Doesn't it mean that we just have to calculate the luminance by
r * 0.2125 + g * 0.7154 + b * 0.0721 and set the alpha to this
If that is the case, Opera, librsvg, Incscape are right. Can someone
complain if/why I'am wrong?

Received on Saturday, 14 February 2009 22:09:20 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:54:21 UTC