Bug 144848 - SVG Export in DRAW does not export layers
Summary: SVG Export in DRAW does not export layers
Status: RESOLVED DUPLICATE of bug 95717
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
7.2.1.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-01 06:39 UTC by 1820204_1
Modified: 2021-10-02 08:22 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
File from Inkscape, contains layers (22.83 KB, image/jpeg)
2021-10-01 06:42 UTC, 1820204_1
Details
layers exported from draw (7.23 KB, image/svg+xml)
2021-10-01 06:44 UTC, 1820204_1
Details

Note You need to log in before you can comment on or make changes to this bug.
Description 1820204_1 2021-10-01 06:39:14 UTC
Description:
The expected behavior of layers within SVG files exported from DRAW is completely different to SVG files from other sources, e.g. Inkscape. It is as layers are totally ignored.

Steps to Reproduce:
1.Create 2+ layers within draw 
2.Place a shape on each layer
3.Export the slide to a SVG file (File - Export ... name + SVG Format)
4.Import the file to a program for further processing e.g.  Sozi Presenter or Inkscape

Alternative / vice verca
1. Open the SVG file  as linked in "Other information", this file does contain layers
2. After Import the existing layers are removed / not accessible

Actual Results:
Layers crated by DRAW are not available
All shapes are merged to one shape and can not be selected individually

Vice versa:
Existing layers in an SVG File imported from e.g. Inkscape are not shown

Expected Results:
Layers may be used within such programs (Inkscape, Sozi Presenter)
Each shape should be an individual object

Layers in imported files should be available


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Please find a file with the expected behaviour here (not exported from DRAW)

https://sozi.baierouge.fr/presentations/tutorial-layers/tutorial-layers.de.svg
Comment 1 1820204_1 2021-10-01 06:42:31 UTC
Created attachment 175436 [details]
File from Inkscape, contains layers
Comment 2 1820204_1 2021-10-01 06:44:52 UTC
Created attachment 175437 [details]
layers exported from draw
Comment 3 Regina Henschel 2021-10-01 22:00:48 UTC
Inkscape produces non-standard SVG. The SVG standard has no concept of layers.

Inkscape uses the idea to put all shapes from one layer into a group element. I first thought too, that would work, but in LibreOffice grouping is orthogonal to layers.

If you have an idea how to handle layers in a way conform to SVG standard, please add it to bug 95717.

*** This bug has been marked as a duplicate of bug 95717 ***