Bug 151746 - Export to SVG, Page Background is not exported
Summary: Export to SVG, Page Background is not exported
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.2.0.0.alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL: https://ask.libreoffice.org/t/backgro...
Whiteboard:
Keywords: bibisected, bisected, filter:svg, regression
Depends on:
Blocks: SVG-Save
  Show dependency treegraph
 
Reported: 2022-10-25 09:13 UTC by Alistair Saywell
Modified: 2024-03-11 02:03 UTC (History)
9 users (show)

See Also:
Crash report or crash signature:


Attachments
ODG with gradient background and some shapes (21.94 KB, application/vnd.oasis.opendocument.graphics)
2022-10-25 09:13 UTC, Alistair Saywell
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alistair Saywell 2022-10-25 09:13:37 UTC
Created attachment 183250 [details]
ODG with gradient background and some shapes

I have a Draw document with a Page background in colour or gradient, see attached odg (22kb). I export the document to JPG (Selection unticked for all exports) then the page background is exported.

If I export the same document to SVG then the Page background is not visible. (38kb)

If I delete the Page background and export to SVG then the page background is still not there but the file size is reduced. (14kb)

So it looks as though something from the page background is included in the exported SVG but not correctly.

Arising from https://ask.libreoffice.org/t/backgrounds-in-draw-and-exporting-to-svg/83283

Version: 7.4.2.1 (x64) / LibreOffice Community
Build ID: 681d65acd9ede00dd724d6716f21cabfdcc95bd2
CPU threads: 8; OS: Windows 10.0 Build 22621; UI render: default; VCL: win
Locale: en-NZ (en_NZ); UI: en-GB
Calc: CL

But same results from 6.2.8.2
Comment 1 Rainer Bielefeld Retired 2022-10-25 09:58:42 UTC
REPRODUCIBLE with reporter'ssample document
Installation of Version: 7.3.3.2 (x64) 
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 12; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: de-DE |  Calc: threaded | ElementaryTheme | My normal User Profile	

This and all followingtests: same result with reporter'ssample document and own sample document.

Still  REPRODUCIBLE with Server Installation of Version: 7.5.0.0.alpha0+  Build ID: 2a7fcaf582df3ada57ca519b50e29011973a1b6f
CPU-Threads: 12; BS: Windows 10.0 Build 19044; UI render: default; VCL: win
Locale: de-DE (de_DE); UI: en-US
Calc: Calc: threaded |  Elementary Theme  |  Special devUserProfile  (based on my normal one).

Was ok with Portable Version: 6.4.7.2 (x86)
Build-ID: 639b8ac485750d5696d7590a72ef1b496725cfb5

Additional info:
a) Query <https://bugs.documentfoundation.org/buglist.cgi?cmdtype=dorem&remaction=run&namedcmd=DUPs151746&sharer_id=19321> showed possibly related issues:
"Bug 115549 - Slide background not exported to SVG"
"Bug 61314 - Export to SVG ignores background color set via direct formatting"
Comment 2 Rainer Bielefeld Retired 2022-10-25 11:27:45 UTC
b) I tried all exported.svg with SeaMonkey and LibO 7.3.3.2 DRAW. Missing background all the same in both viewers
Comment 3 Roman Kuznetsov 2022-11-01 18:35:08 UTC
I confirm the behavior but I'm not sure it's a bug

The background is a page's property, it isn'r any shape or object...

Xisco, should the SVG file support the background of some page?
Comment 4 raal 2022-11-02 20:02:04 UTC
This seems to have begun at the below commit.
Adding Cc: to Marco Cecchetti ; Could you possibly take a look at this one?
Thanks
 fd36426aa93acef292a9d422d931411ab5e8e2e9 is the first bad commit
commit fd36426aa93acef292a9d422d931411ab5e8e2e9
Author: Jenkins Build User <tdf@pollux.tdf>
Date:   Tue Jan 26 19:25:09 2021 +0100

    source fd84bce804279b881099a7c0d44136d75d015ca1

https://git.libreoffice.org/core/+/fd84bce804279b881099a7c0d44136d75d015ca1
Comment 5 Stéphane Guillou (stragu) 2023-11-07 00:45:24 UTC
Repro in:

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

(In reply to Alistair Saywell from comment #0)
> But same results from 6.2.8.2

Interesting:
- it didn't work in 6.2
- it got fixed in 6.3 by 6d7d1fe6cf205d34cc8889e503c727b19c513c94 for bug 115549
- then it was broken again in 7.2 by fd84bce804279b881099a7c0d44136d75d015ca1, as bibisected in comment 4. Note that it still works for Impress.