After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 338385 - Support of SVG 1.2 "comp-op" property
Support of SVG 1.2 "comp-op" property
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2006-04-13 19:53 UTC by Emmanuel Pacaud
Modified: 2017-12-13 17:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Preliminary patch (13.13 KB, patch)
2007-01-10 22:11 UTC, Emmanuel Pacaud
needs-work Details | Review
Improved patch (17.19 KB, patch)
2007-01-11 21:47 UTC, Emmanuel Pacaud
committed Details | Review
Porter-Duff test file (10.49 KB, image/svg+xml)
2007-01-11 21:48 UTC, Emmanuel Pacaud
  Details
Simple xor operator on text test file (1.86 KB, image/svg+xml)
2007-01-11 21:49 UTC, Emmanuel Pacaud
  Details

Description Emmanuel Pacaud 2006-04-13 19:53:37 UTC
It's a feature used in current cairo SVG backend for support of cairo operators without using image fallbacks.

http://www.w3.org/TR/2004/WD-SVG12-20041027/rendering.html

Following operations are used:

clear, src, src-over, src-in,
src-out, src-atop, dst, dst-over, dst-in,
dst-out, dst-atop, xor, plus, color-dodge

I'm not sure about color-dodge, which would be used for CAIRO_OPERATOR_SATURATE.
Comment 1 Emmanuel Pacaud 2007-01-10 22:11:23 UTC
Created attachment 79993 [details] [review]
Preliminary patch

Here's a preliminary patch for comp-op support, mainly for comments before finishing it.

We must not let QtSVG be the only open source SVG implementation supporting extended blend modes for too long... :)
Comment 2 Emmanuel Pacaud 2007-01-11 21:47:47 UTC
Created attachment 80077 [details] [review]
Improved patch

This one should be better.
Comment 3 Emmanuel Pacaud 2007-01-11 21:48:31 UTC
Created attachment 80078 [details]
Porter-Duff test file
Comment 4 Emmanuel Pacaud 2007-01-11 21:49:18 UTC
Created attachment 80080 [details]
Simple xor operator on text test file
Comment 5 Dominic Lachowicz 2007-01-11 21:52:31 UTC
It's a bit hard to review this patch because of the formatting changes. I know - librsvg's formatting is an inconsistent mess.

However, I trust you Emmanuel, so please commit this to SVN.
Comment 6 Emmanuel Pacaud 2007-01-13 21:41:16 UTC
Patch commited.

Support is not complete yet, it lacks extended blend modes. We need support in cairo first.
Comment 7 GNOME Infrastructure Team 2017-12-13 17:28:14 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/7.