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>
Hi,

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
luminance?
If that is the case, Opera, librsvg, Incscape are right. Can someone
complain if/why I'am wrong?

-Dirk
Received on Saturday, 14 February 2009 22:09:20 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:41 GMT