Bug 48062 - [SVG] feComposite filter isn't supported
Summary: [SVG] feComposite filter isn't supported
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
3.5.1 release
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: target:24.8.0 inReleaseNotes:24.8
Keywords: filter:svg
Depends on:
Blocks: SVG-Import SVG-filters SVG-Open
  Show dependency treegraph
 
Reported: 2012-03-29 14:19 UTC by Valek Filippov
Modified: 2024-04-22 09:54 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
W3C SVG test suite "filter-composite-03-f" (4.42 KB, image/svg+xml)
2012-03-29 14:19 UTC, Valek Filippov
Details
Sample from W3 webpage (9.05 KB, image/svg+xml)
2015-10-27 10:10 UTC, Xisco Faulí
Details
how it should be rendered (9.72 KB, image/png)
2015-10-27 10:11 UTC, Xisco Faulí
Details
Test file 'filter-composite-03-f' as rendered by LO 5.2.2.2 (x64) (29.87 KB, image/png)
2016-11-14 11:42 UTC, Jouni Järvinen
Details
Sample document with rectangles (2.52 KB, image/svg+xml)
2024-03-14 22:32 UTC, Xisco Faulí
Details
Sample document (deleted)
2024-03-15 08:48 UTC, Xisco Faulí
Details
another example with cercles (22.78 KB, image/svg+xml)
2024-03-15 10:12 UTC, Xisco Faulí
Details
arithmetic sample (858 bytes, image/svg+xml)
2024-03-21 13:38 UTC, Xisco Faulí
Details
Another arithmetic sample (535 bytes, image/svg+xml)
2024-04-10 10:18 UTC, Xisco Faulí
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valek Filippov 2012-03-29 14:19:56 UTC
Created attachment 59239 [details]
W3C SVG test suite "filter-composite-03-f"

According to w3c "The test is passed if there are four filled squares visible, and the fill color matches the respective reference stroke exactly."

LO Draw fails this test (fill colour doesn't match reference stroke).
Comment 1 sasha.libreoffice 2012-06-27 00:12:14 UTC
Thanks for bugreport
reproduced in 3.3.4 on Fedora in both File->Open and Insert->Picture
reproduced in 3.5.4 and 3.6.beta1 only in File->Open
Comment 2 sasha.libreoffice 2012-06-27 00:38:26 UTC
Sorry, correction:
Link to test:
http://www.w3.org/Graphics/SVG/Test/20110816/harness/htmlObject/filters-composite-03-f.html

There shown that all 4 squares should be without squares inside. But Inkscape and Firefox show all 4 squares with other squares inside.

If version that all 4 squares should be without squares inside is correct, then:
reproduced in 3.3.4 on Fedora in both File->Open and Insert->Picture
reproduced in 3.5.4 in both File->Open and Insert->Picture
reproduced 3.6.beta1 in both File->Open and Insert->Picture
Comment 3 Alexandr 2014-07-31 08:15:12 UTC
Reproducible with LibreOffice 4.2.5 and 4.3.0 on Debian.
Comment 4 QA Administrators 2015-09-04 02:48:26 UTC Comment hidden (noise)
Comment 5 Alexandr 2015-09-19 16:40:53 UTC
Reproduced with LibreOffice 5.0.1 on Debian in both File->Open and Insert->Image
Comment 6 Xisco Faulí 2015-10-27 10:10:58 UTC
Created attachment 119993 [details]
Sample from W3 webpage

it looks like neither Firefox nor Chrome fully support it yet but IE11 does it
Comment 7 Xisco Faulí 2015-10-27 10:11:46 UTC
Created attachment 119995 [details]
how it should be rendered
Comment 8 Robinson Tryon (qubit) 2015-12-10 04:28:19 UTC Comment hidden (obsolete)
Comment 9 Jouni Järvinen 2016-11-14 11:40:27 UTC
LO 5.2.2.2 (x64), Window$ 7 Ultimate SP1 x64, there's 1 type of problem with the 'filter-composite-03-f' test file: each square has a middle of a different color, even completely different, and has a square ring around it, even of completely different color. See the attachment below.
Comment 10 Jouni Järvinen 2016-11-14 11:42:37 UTC
Created attachment 128746 [details]
Test file 'filter-composite-03-f' as rendered by LO 5.2.2.2 (x64)
Comment 11 QA Administrators 2017-11-15 09:16:12 UTC Comment hidden (noise)
Comment 12 Roman Kuznetsov 2018-06-16 15:46:50 UTC
still repro in 6.1 beta 1
Comment 13 QA Administrators 2019-06-21 02:53:29 UTC Comment hidden (noise)
Comment 14 QA Administrators 2021-06-21 03:38:34 UTC Comment hidden (noise)
Comment 15 QA Administrators 2023-06-22 03:14:46 UTC Comment hidden (noise, obsolete)
Comment 16 Commit Notification 2024-03-13 18:03:39 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/626047bababf3a84b05103fbed9ecabed33a359f

tdf#48062: Add support for feComposite filter

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 17 Xisco Faulí 2024-03-13 18:09:24 UTC Comment hidden (obsolete)
Comment 18 Xisco Faulí 2024-03-13 18:10:40 UTC
Support for (in | out | atop | xor | arithmetic) operators is still missing
Comment 19 Xisco Faulí 2024-03-14 22:32:59 UTC
Created attachment 193116 [details]
Sample document with rectangles

Svg showing the over, xor, in, out and atop operators
Comment 20 Commit Notification 2024-03-15 00:07:03 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/b240f6198fae7221b7cd3e4678403ad99827b53d

tdf#48062: Add support for xor, in and out operators in feComposite

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 21 Xisco Faulí 2024-03-15 08:48:43 UTC
Created attachment 193123 [details]
Sample document
Comment 22 Xisco Faulí 2024-03-15 08:55:24 UTC
The content of attachment 193123 [details] has been deleted
Comment 23 Xisco Faulí 2024-03-15 10:12:44 UTC
Created attachment 193126 [details]
another example with cercles
Comment 24 Commit Notification 2024-03-15 12:31:19 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/4e9b39aefb5bdf02b965f75fcf08bfe92ece27d0

tdf#48062: Add support for atop operator in feComposite

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 25 Commit Notification 2024-03-15 13:55:29 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/485ae0bc7e1a1d615dd1d4133d3e42d655dec029

tdf#48062: use mergeToSinglePolyPolygon instead of createPolygonFromRect

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 26 Xisco Faulí 2024-03-21 13:38:12 UTC
Created attachment 193229 [details]
arithmetic sample
Comment 27 Xisco Faulí 2024-04-10 10:18:57 UTC
Created attachment 193601 [details]
Another arithmetic sample
Comment 28 Commit Notification 2024-04-16 07:37:24 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/cb4698626f17e005c820a7138c63a03c21120ecd

tdf#48062: Add support for arithmetic in feComposite

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 29 Xisco Faulí 2024-04-16 08:49:10 UTC
All feComposite operators have been implemented. Closing this issue.
The reason why attachment 59239 [details] is still correctly rendered is because 'FillPaint' and 'StrokePaint' are not supported. I'll create a follow-up ticket for that.
Closing this one
Comment 30 Commit Notification 2024-04-22 09:54:46 UTC
Xisco Fauli committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/4b6e0f2c88debaedb514c868e061c21e15215b6e

tdf#160726, tdf#48062: Simplify how BitmapExs are created

It will be available in 24.8.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.