Bug 95145 - SVG not correctly displayed
Summary: SVG not correctly displayed
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: filters and storage (show other bugs)
Version:
(earliest affected)
4.4 all versions
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:svg
Depends on:
Blocks: SVG-Import SVG-filters SVG-Open
  Show dependency treegraph
 
Reported: 2015-10-17 15:56 UTC by Adrian Maire
Modified: 2023-06-26 21:19 UTC (History)
7 users (show)

See Also:
Crash report or crash signature:


Attachments
SVG as it should be vs as shown by LibreOffice (13.99 KB, image/png)
2015-10-17 15:56 UTC, Adrian Maire
Details
logo to test. (2.93 KB, image/svg+xml)
2015-10-17 15:59 UTC, Adrian Maire
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Maire 2015-10-17 15:56:56 UTC
Created attachment 119701 [details]
SVG as it should be vs as shown by LibreOffice

Inserting SVG images in documents is not displayed correctly:

SCENARIO:
Open a blank document,
Insert a svg by dragging or any other method.

How it should behave:
- Display the SVG image as per the SVG standard

How it is displayed:
- The svg image is something similar to what it should be, but nothing exact or correct.

SVG is one of the most important format, used for logos, diagrams, etc..

IMHO, it is the third most important feature after writing and saving the document.
Comment 1 raal 2015-10-17 15:59:35 UTC
Please attach SVG file.
Comment 2 Adrian Maire 2015-10-17 15:59:36 UTC
Created attachment 119702 [details]
logo to test.

image used for the test
Comment 3 MM 2015-10-17 17:41:21 UTC
Confirmed with v4.4.6.1 under windows 7 x64.
It affects multiple components, not just writer. Strangely enough when using writer there's a border around the image, which doesn't happen in calc/draw/impress.
Comment 4 V Stuart Foote 2015-10-17 23:19:51 UTC
Both insert and open filtering mishandles the simple Inkscape derived SVG. No improvement if the SVG is changed to SVG plain rather than Inkscape native.
Comment 5 Regina Henschel 2015-10-27 18:30:24 UTC
svg-filters are not yet implemented. That is a missing feature.
Comment 6 Adrian Maire 2015-12-02 17:44:59 UTC
> svg-filters are not yet implemented
It is not only a mater of the shadow, it seem like converted to a low polygonal shape.
I could leave without filters and/or convert shadow into gradients. But the low fidelity of the rendering is a block for decent documents.
Comment 7 Robinson Tryon (qubit) 2015-12-10 05:37:55 UTC Comment hidden (obsolete)
Comment 8 JoNi 2016-02-08 19:35:36 UTC
(In reply to Adrian Maire from comment #6)
> > svg-filters are not yet implemented
> It is not only a mater of the shadow, it seem like converted to a low
> polygonal shape.
> I could leave without filters and/or convert shadow into gradients. But the
> low fidelity of the rendering is a block for decent documents.

in LO 5.2.0.0.alpha0+ (x64) the curves are smooth, even with max zoom level

The fix could also be available in latest 5.0 or 5.1 tree
Comment 9 Roman Kuznetsov 2018-06-18 21:07:07 UTC
still repro in 6.1 beta 2
Comment 10 Xisco Faulí 2019-09-20 11:46:15 UTC
Also reproduced in

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e
Comment 11 QA Administrators 2021-09-22 03:39:14 UTC Comment hidden (obsolete)
Comment 12 Stéphane Guillou (stragu) 2022-11-23 11:21:59 UTC
Shadow is still not shown in recent master build:

Version: 7.5.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 1435c5b12646269e2b5b58ec7d51626dce6505db
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 13 Xisco Faulí 2023-06-26 21:17:33 UTC
feOffSet is not the only reason why the svg is not displayed correctly, there are other filters not supported as well