W3C home > Mailing lists > Public > www-svg@w3.org > December 2013

[filter-effects] Blending without compositing

From: Dirk Schulze <dschulze@adobe.com>
Date: Fri, 6 Dec 2013 05:16:22 -0800
To: "public-fx@w3.org" <public-fx@w3.org>, www-svg <www-svg@w3.org>
Message-ID: <D4709F52-CFCA-4DA3-BAD4-B17EFCA03E3E@adobe.com>
Hi,

The SVG WG resolved at the F2F in Tokyo this summer that <feBlend> in Filter Effects should support blending without compositing. This shall avoid double compositing as it can happen in combination with BackgroundImage today. [1]

We did have some difficulties to define the exact way to disable compositing. There are two different proposal so far:

1) Support all compositing operators on <feBlend>

The idea is that we actually do not disable compositing but allow the author to use a different compositing operator. The ‘mode’ attribute could be extended to support compositing modes as well:

<blending> = [normal | multiply | screen | darken | lighten] || [over | in | out | atop | xor]

which could look like this:

<feBlend mode=“screen atop” in2=“BackgroundImage” />

(The compositing values could be replaced by the keywords used by Canvas.)

2) Create new attribute ‘compositing'

SVG does not support boolean attributes yet. Therefore the attribute ‘compositing' would need values like ‘composite’/’no-compositing’ or simply ‘true’/‘false’.

With this attribute the compositing step can just be omitted completely or switched to source-over compositing following the formulas from CSS Compositing and Blending.


Any preferences?

Greetings,
Dirk

[1] http://dev.w3.org/fxtf/filters/#issue-9d31c6c7
Received on Friday, 6 December 2013 13:16:53 UTC

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