Bug 161558 - Object with no line exported as SVG has transparent "borders"
Summary: Object with no line exported as SVG has transparent "borders"
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
6.4.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://ask.libreoffice.org/t/saving-...
Whiteboard:
Keywords: bibisectRequest, filter:svg
Depends on:
Blocks: SVG-Save
  Show dependency treegraph
 
Reported: 2024-06-14 02:10 UTC by Alistair Saywell
Modified: 2024-06-17 13:04 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
There are 4 pages, first shows svg without line, and then pages 2,3,4 as listed in body of report (34.58 KB, application/vnd.oasis.opendocument.graphics)
2024-06-14 02:10 UTC, Alistair Saywell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alistair Saywell 2024-06-14 02:10:14 UTC
Created attachment 194718 [details]
There are 4 pages, first shows svg without line, and then pages 2,3,4 as listed in body of report

An svg object without line exported from Draw and used as area fill, Stretched, shows white border.

2. The same object but with the default line fills the area completely.
3. The same object exported as png fills the area completely but faded at edge
4. A similar object without line, created in Inkscape, fills the area completely

It looks like some allowance is made for a default line in the exported svg

The expectation is that the svg without line would fill the area completely, just the same as if it had a line or the Inkscape svg.

This issue arose in https://ask.libreoffice.org/t/saving-a-vector-graphics-file-properly/106750

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: en-NZ (en_NZ); UI: en-GB
Calc: CL threaded

Also in 6.4.7.2

I note something similar in tdf#149800 but that sample appears correctly in my 24.2.3.2
Comment 1 Stéphane Guillou (stragu) 2024-06-17 13:04:13 UTC
Reproduced in:

Version: 24.8.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 5a75414d1772d1fd998f405e3b9bd80b1f10c51f
CPU threads: 8; OS: Linux 6.5; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: CL threaded

Export selection of single shape with no line results in SVG with some border, made evident by tiled-filling or stretch-filling another object with it.
Changing the page background shows that it's actually a transparent sliver.
Assigning and area fill colour to the imported SVG results in it "framed" by its background.

In 6.0, the grid can be seen but it is a barely noticeable hairline. Maybe a change to bibisect.

László, with your fix for bug 149800, wondering if you are interested at all?