Bug 64464 - SVG image linear gradient is rendered rasterized / stepped
Summary: SVG image linear gradient is rendered rasterized / stepped
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
4.0.3.3 release
Hardware: All All
: medium major
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks: SVG-Import SVG-Open
  Show dependency treegraph
 
Reported: 2013-05-11 11:50 UTC by ilikebigbugs
Modified: 2023-11-06 14:37 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
image showing the behaviour (16.47 KB, image/png)
2013-05-11 11:50 UTC, ilikebigbugs
Details
example svg (10.63 KB, image/svg+xml)
2013-05-11 11:51 UTC, ilikebigbugs
Details
How it looks in Libreoffice 5.0.0.5 (24.98 KB, image/jpeg)
2015-08-26 10:47 UTC, Xisco Faulí
Details
SVG gradients in Draw 6.1 beta 2 + (8.48 KB, image/png)
2018-06-17 15:33 UTC, Roman Kuznetsov
Details
test with v 6.1.5.2 with breaking and regroup (31.19 KB, application/vnd.oasis.opendocument.graphics)
2019-04-01 15:24 UTC, paulystefan
Details
v 6.2.1.1 x64 win 10 x64 after breaking and regroup (31.32 KB, application/vnd.oasis.opendocument.graphics)
2019-04-01 15:30 UTC, paulystefan
Details
simpler sample SVG, re-saved with Inkscape 1.3 (10.06 KB, image/svg+xml)
2023-11-06 14:37 UTC, Stéphane Guillou (stragu)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ilikebigbugs 2013-05-11 11:50:51 UTC
Created attachment 79159 [details]
image showing the behaviour

XP, LO Version 4.0.4.0+

Insert->Picture->From File
linear gradient from top to bottom looks wired (rasterisedlike)
normally linear gradient seems to work but not in this drawing


some comments/testing on SVG import can be found here:
http://en.libreofficeforum.org/node/293
Comment 1 ilikebigbugs 2013-05-11 11:51:58 UTC
Created attachment 79161 [details]
example svg
Comment 2 Jorendc 2013-05-22 17:32:52 UTC
Thanks for reporting.

I can reproduce this behavior using Linux Mint 15 x64 with LibreOffice 4.0.3.3. Also using LibreOffice Version: 4.2.0.0.alpha0+
Build ID: 66c315bcf2b78c4928d1e436d1a853f58f4cccd

Kind regards,
Joren
Comment 3 QA Administrators 2015-03-04 02:24:23 UTC Comment hidden (obsolete)
Comment 4 Buovjaga 2015-03-24 17:31:21 UTC
Not looking stepped anymore, but the color stops are wrong.

Win 7 Pro 64-bit, LibO Version: 4.4.1.2
Build ID: 45e2de17089c24a1fa810c8f975a7171ba4cd432
Locale: fi_FI

Version: 4.5.0.0.alpha0+
Build ID: 181feb38d95e25980b96c2f6802cc906410abb13
TinderBox: Win-x86@62-TDF, Branch:MASTER, Time: 2015-03-19_23:38:28
Locale: fi_FI
Comment 5 Xisco Faulí 2015-08-26 10:47:19 UTC
Created attachment 118196 [details]
How it looks in Libreoffice 5.0.0.5

Problem still present in

Version: 5.0.0.5
Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
Locale: es-ES (es_ES)

on Windows 7 (64-bit)
Comment 6 Heiko Tietze 2016-05-17 13:34:59 UTC
Wondering if this is a regression since LibO has no multistop gradients, and therefore the gradient goes from red to green instead of covering the whole rainbow. However, even more annoying is the simulation of a gradient by many small lines in different colors, as it might was realized before.
Comment 7 Heiko Tietze 2016-05-17 14:22:56 UTC
It depends on whether gradient_exmpl.svg is inserted or loaded. The first one results in a gradient, the second in a messy interpretation. Setting relevance to major since it's a real show stopper.
Comment 8 QA Administrators 2017-10-30 08:33:25 UTC Comment hidden (obsolete)
Comment 9 Roman Kuznetsov 2018-06-17 15:33:24 UTC
Created attachment 142825 [details]
SVG gradients in Draw 6.1 beta 2 +
Comment 10 Roman Kuznetsov 2018-06-17 15:34:20 UTC
(In reply to Xisco Faulí from comment #5)
> Created attachment 118196 [details]
> How it looks in Libreoffice 5.0.0.5
> 
> Problem still present in
> 
> Version: 5.0.0.5
> Build ID: 1b1a90865e348b492231e1c451437d7a15bb262b
> Locale: es-ES (es_ES)
> 
> on Windows 7 (64-bit)

confirm for

Version: 6.1.0.0.beta2+ (x64)
Build ID: fe1a23b5c49c94410a604c8d4a6f50f43d575403
CPU threads: 4; OS: Windows 10.0; UI render: GL; 
TinderBox: Win-x86_64@42, Branch:libreoffice-6-1, Time: 2018-06-17_06:31:41
Locale: ru-RU (ru_RU); Calc: CL
Comment 11 paulystefan 2019-04-01 15:24:54 UTC
Created attachment 150458 [details]
test with v 6.1.5.2 with breaking and regroup

v 6.1..5.2 64bit win10-64

raster changes to horizontal

after breaking
Comment 12 paulystefan 2019-04-01 15:30:27 UTC
Created attachment 150459 [details]
v 6.2.1.1 x64 win 10 x64 after breaking and regroup

workaround in version 6.2.1.1 x64 in win 10 x64

after breaking no raster than regroup for usable opjects.

breaking is not a good workaround in complex svg
Comment 13 QA Administrators 2021-04-01 03:53:59 UTC Comment hidden (obsolete)
Comment 14 Hossein 2021-12-19 14:18:08 UTC
Still reproducible in 7.2. Also, just by breaking the shape, the rendering is suddenly shown correctly.

Version: 7.2.0.4 / LibreOffice Community
Build ID: 9a9c6381e3f7a62afc1329bd359cc48accb6435b
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

Also reproducible in the latest 7.4 master:

Version: 7.4.0.0.alpha0+ / LibreOffice Community
Build ID: 7620833fb4c48b9f981c81ea1ae72102c680f1a5
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 15 Heiko Tietze 2023-02-09 10:55:11 UTC Comment hidden (off-topic)
Comment 16 Stéphane Guillou (stragu) 2023-11-06 14:35:32 UTC
Same in recent trunk 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

The file uses a variety of linearGradient and radialGradient elements, see https://developer.mozilla.org/en-US/docs/Web/SVG/Element/linearGradient and 

In LO, the size and number of the rendered "steps" depends on the zoom level, which makes me think it's more of a rendering issue.

Xisco, what do you think?
Comment 17 Stéphane Guillou (stragu) 2023-11-06 14:37:10 UTC
Created attachment 190686 [details]
simpler sample SVG, re-saved with Inkscape 1.3
Comment 18 Stéphane Guillou (stragu) 2023-11-06 14:37:34 UTC
(In reply to Stéphane Guillou (stragu) from comment #16)
> The file uses a variety of linearGradient and radialGradient elements, see
> https://developer.mozilla.org/en-US/docs/Web/SVG/Element/linearGradient and 
... https://developer.mozilla.org/en-US/docs/Web/SVG/Element/radialGradient