Bug 48392 - ODF: Implementation for svg:linearGradient and svg:radialGradient is missing
Summary: ODF: Implementation for svg:linearGradient and svg:radialGradient is missing
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: odf
Keywords: filter:odf
: 52068 94588 (view as bug list)
Depends on: 76682 115204
Blocks: 94238 ODF-import Object-Fill-Gradient 132849
  Show dependency treegraph
 
Reported: 2012-04-06 09:50 UTC by Valek Filippov
Modified: 2024-09-30 22:34 UTC (History)
10 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot in Karbon (6.32 KB, image/png)
2012-04-06 09:50 UTC, Valek Filippov
Details
ODG with gradients (4.45 KB, application/vnd.oasis.opendocument.graphics)
2012-04-06 09:51 UTC, Valek Filippov
Details
Calligra Karbon (left) vs LO 24.2 alphao+ (right) (108.05 KB, image/png)
2023-11-05 22:30 UTC, Stéphane Guillou (stragu)
Details
sample ODP created with Calligra Stage (9.11 KB, application/vnd.oasis.opendocument.presentation)
2023-11-05 22:44 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valek Filippov 2012-04-06 09:50:25 UTC
Created attachment 59593 [details]
Screenshot in Karbon

Two shapes with red2yellow gradients were made in Karbon.
LO Draw open them as grey to light grey and ignores gradient direction (W-SE and W-E).
Comment 1 Valek Filippov 2012-04-06 09:51:14 UTC
Created attachment 59594 [details]
ODG with gradients
Comment 2 Valek Filippov 2012-07-08 10:02:02 UTC
Same in 3.6beta2
Comment 3 Regina Henschel 2012-08-12 18:47:49 UTC
Calligra uses svg:linearGradient and LibreOffice and Apache OpenOffice use draw:gradient and do not understand the element svg:linearGradient yet. So a default gradient is shown. It is a missing feature.
Comment 4 Regina Henschel 2012-08-12 18:51:34 UTC
*** Bug 52068 has been marked as a duplicate of this bug. ***
Comment 5 Michael Stahl (allotropia) 2012-09-17 10:17:31 UTC
setting "odf" keyword

relevant places in the ODF import filter:

xmloff/source/style/xmlstyle.cxx
xmloff/source/style/GradientStyle.cxx (apparently the existing draw:gradient import)
Comment 6 QA Administrators 2015-01-05 17:52:09 UTC Comment hidden (obsolete)
Comment 7 Regina Henschel 2015-01-06 00:07:38 UTC
The error is still there in Version: 4.5.0.0.alpha0+
Build ID: 5b829710d65310c6082c2c65ec1239515e319a8e
TinderBox: Win-x86@39, Branch:master, Time: 2014-12-02_06:39:26
Locale: de_DE

Still the same reason: missing feature "svg gradient".
Comment 8 QA Administrators 2016-01-17 20:04:20 UTC Comment hidden (obsolete)
Comment 9 Regina Henschel 2016-01-17 21:04:47 UTC
No progress, "svg gradient" is still missing in Version: 5.2.0.0.alpha0+
Build ID: e413549dc8b5669a806eeabc30c7d6f92723a882
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-12-28_23:26:49
Locale: de-DE (de_DE)
Comment 10 QA Administrators 2017-03-06 14:23:04 UTC Comment hidden (obsolete)
Comment 11 Regina Henschel 2017-09-13 07:23:05 UTC
The svg gradients are still missing in Version: 6.0.0.0.alpha0+
Build ID: 6c68f38bc28bb55a4f0d53b8f38957516d3935d1
CPU threads: 4; OS: Windows 6.1; UI render: default; 
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2017-09-04_22:05:26
Locale: de-DE (de_DE); Calc: group
Comment 12 Regina Henschel 2017-09-13 07:24:01 UTC
*** Bug 94588 has been marked as a duplicate of this bug. ***
Comment 13 Yousuf Philips (jay) (retired) 2017-09-14 13:45:43 UTC
From my duplicate bug (bug 94588): Calligra also uses <svg:radialGradient>
Comment 14 Regina Henschel 2018-01-24 12:56:55 UTC
Change subject to reflect the root cause.
Comment 15 QA Administrators 2019-05-21 02:54:08 UTC Comment hidden (obsolete)
Comment 16 Michael Stahl (allotropia) 2019-05-21 08:57:31 UTC
afaik nobody implemented this
Comment 17 Regina Henschel 2023-02-06 13:07:45 UTC
It was included as option in tender https://blog.documentfoundation.org/blog/2022/02/28/tender-to-cleanup-and-further-improve-odf-conformance-202202-01/
I don't now the state of that tender.
Comment 18 Stéphane Guillou (stragu) 2023-11-05 22:25:37 UTC
Still not supported in recent master build:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 31fb3045dabdb27d913712f3abcade315e3ea9bd
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded
Comment 19 Stéphane Guillou (stragu) 2023-11-05 22:30:24 UTC
Created attachment 190665 [details]
Calligra Karbon (left) vs LO 24.2 alphao+ (right)
Comment 20 Stéphane Guillou (stragu) 2023-11-05 22:44:46 UTC
Created attachment 190666 [details]
sample ODP created with Calligra Stage

Sample ODP created with Calligra Stage 3.1.0.

The two stock gradients used (simple.kgr and allcolors.kgr) are defined in styles.xml as:

  <svg:linearGradient draw:name="gradient1" svg:spreadMethod="pad" svg:x1="0.000000%" svg:x2="100.000000%" svg:y1="0.000000%" svg:y2="100.000000%">
   <svg:stop svg:offset="0" svg:stop-color="#ff0000"/><svg:stop svg:offset="1" svg:stop-color="#ffff00"/>
  </svg:linearGradient>
  <svg:linearGradient draw:name="gradient2" svg:spreadMethod="pad" svg:x1="0.000000%" svg:x2="100.000000%" svg:y1="0.000000%" svg:y2="100.000000%">
   <svg:stop svg:offset="0" svg:stop-color="#ff0000"/><svg:stop svg:offset="0.183575" svg:stop-color="#ffe100"/><svg:stop svg:offset="0.347826" svg:stop-color="#00ff00"/><svg:stop svg:offset="0.516908" svg:stop-color="#00ffff"/><svg:stop svg:offset="0.68599" svg:stop-color="#0000ff"/><svg:stop svg:offset="0.845411" svg:stop-color="#ff00ff"/><svg:stop svg:offset="1" svg:stop-color="#ff0000"/>
  </svg:linearGradient>
Comment 21 Eyal Rozenberg 2024-09-30 21:26:08 UTC
Which ODF spec version is the first to require this?
Comment 22 Regina Henschel 2024-09-30 22:34:41 UTC
(In reply to Eyal Rozenberg from comment #21)
> Which ODF spec version is the first to require this?

ODF 1.0, section 14.14.2 SVG Gradients
https://groups.oasis-open.org/higherlogic/ws/public/download/12572/OpenDocument-v1.0-os.pdf