Bug 34264 - FILESAVE SVG export
Summary: FILESAVE SVG export
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-14 09:58 UTC by mathog
Modified: 2012-06-07 01:36 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
source drawing which does not export well (19.80 KB, application/vnd.oasis.opendocument.graphics)
2011-02-14 09:58 UTC, mathog
Details
exported SVG (587.29 KB, image/svg+xml)
2011-02-14 09:59 UTC, mathog
Details
See Comment 2 (7.34 KB, application/vnd.oasis.opendocument.graphics)
2011-02-14 21:53 UTC, Rainer Bielefeld Retired
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mathog 2011-02-14 09:58:47 UTC
Created attachment 43345 [details]
source drawing which does not export well

A drawing originally found in this bug report 

https://bugs.freedesktop.org/show_bug.cgi?id=34204

was found to not print to postscript or PDF reliably.  Here I report that it also
does not export to SVG correctly.  I have access to two SVG viewers and it looks
wrong, and different in both of them.  

In Inkscape (0.48) the draw order is incorrect (paper and "@" symbol) are behind part of the envelope, the gradient for the front flap (the piece of paper which goes from the lower left corner to around the middle and then back to the lower right corner) apparently is extended out into the rectangular boundary box for this object.  There is also a dark ellipse visible underneath the paper layer, which wasn't present in the original drawing.

In Firefox 3.6.13 the "@" is missing.  There is an unintended transparency such that the two side flaps and parts of the paper in the envelope are visible through the front flap.
Comment 1 mathog 2011-02-14 09:59:11 UTC
Created attachment 43346 [details]
exported SVG
Comment 2 Rainer Bielefeld Retired 2011-02-14 21:53:02 UTC
Effect is reproducible in Seamonkey with an export from "LibreOffice 3.3.1 RC1 - WIN7  Home Premium (64bit) German UI  [OOO330m19 (build 7 / tag 3.3.1.1)]"

I see the same problem with a similar EmailEnvelope.odg source, I believe I got that as a .svg and imported it using OOo3
Comment 3 Rainer Bielefeld Retired 2011-02-14 21:53:56 UTC
Created attachment 43362 [details]
See Comment 2
Comment 4 mathog 2011-02-15 08:48:02 UTC
See comment 9 in bug 34204.

https://bugs.freedesktop.org/show_bug.cgi?id=34204#c9

This suggests where the ellipse is coming from that is visible in Inkscape.  The original had an elliptical gradient for the back inside of the envelope, which is a rectangle.  On SVG export this is converted to a nested series of ellipses of different colors with a rectangular mask over it.  However the mask logic is not correct (in either LO export or Inkscape rendering) since the parts of the ellipse that extend beyond the rectangular mask are visible, and they should not be.