Bug 33900 - SVG import/render does not handle use tag
Summary: SVG import/render does not handle use tag
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
3.3.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-04 05:01 UTC by Gerard Braad
Modified: 2015-12-01 14:59 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Original file containing use tag with xlink:href to path inside the vector drawing (2.74 KB, image/svg+xml)
2011-02-04 05:03 UTC, Gerard Braad
Details
Export from Inkscape which shows the expected outcome of the original file (2.75 KB, image/png)
2011-02-04 05:04 UTC, Gerard Braad
Details
Export from LibreOffice Draw which shows the actual outcome of the original file (2.95 KB, image/png)
2011-02-04 05:06 UTC, Gerard Braad
Details
Latex equation (original svg file) (7.73 KB, image/svg+xml)
2011-02-15 12:33 UTC, Roland Baudin
Details
The Latex equation rendered in LibreOffice Draw 3.3 (9.27 KB, application/vnd.oasis.opendocument.graphics)
2011-02-15 12:33 UTC, Roland Baudin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerard Braad 2011-02-04 05:01:33 UTC
STEPS TO REPRODUCE:
1. Start any LibreOffice application
2. From the menu choose 'Insert' -> 'Picture' -> 'From file'
3. Import svg image containing use tag

EXPECT OUTCOME:
Image is rendered correctly. See attachments.

ACTUAL OUTCOME:
Image is not correctly rendered. See attachments.
Comment 1 Gerard Braad 2011-02-04 05:03:45 UTC
Created attachment 42927 [details]
Original file containing use tag with xlink:href to path inside the vector drawing
Comment 2 Gerard Braad 2011-02-04 05:04:46 UTC
Created attachment 42928 [details]
Export from Inkscape which shows the expected outcome of the original file
Comment 3 Gerard Braad 2011-02-04 05:06:11 UTC
Created attachment 42929 [details]
Export from LibreOffice Draw which shows the actual outcome of the original file

Note: image has been cropped with Gimp.
Comment 4 Gerard Braad 2011-02-04 05:11:45 UTC
Attachment 42927 [details] is the original file as referred to in the bug.
Attachment 42928 [details] shows the expected outcome
Attachment 42929 [details] shows the actual outcome

As can be seen, one of the C's in the CC logo is missing as it is specified using a use tag.

<svg>
  <path id="lc" d="M ... blah blah ... z" />
  <use id="rc" xlink:href="#lc" transform="translate(5.0)" />
</svg>
Comment 5 Roland Baudin 2011-02-15 12:33:28 UTC
Created attachment 43397 [details]
Latex equation (original svg file)
Comment 6 Roland Baudin 2011-02-15 12:33:49 UTC
Created attachment 43398 [details]
The Latex equation rendered in LibreOffice Draw 3.3
Comment 7 Roland Baudin 2011-02-15 12:37:22 UTC
I have attached two files to illustrate tghe problem with SVG files that contain use element tags.
As can be seen in the odg file, the imported equation is totally garbage...

Is somebody working on this issue? Can we expect it to be solved in the near future?

Another question : would it be difficult for a medium knowledge programmer to implement the use element feature in LibreOffice?

Thanks,
RB
Comment 8 Björn Michaelsen 2011-12-23 11:50:10 UTC
[This is an automated message.]
This bug was filed before the changes to Bugzilla on 2011-10-16. Thus it
started right out as NEW without ever being explicitly confirmed. The bug is
changed to state NEEDINFO for this reason. To move this bug from NEEDINFO back
to NEW please check if the bug still persists with the 3.5.0 beta1 or beta2 prereleases.
Details on how to test the 3.5.0 beta1 can be found at:
http://wiki.documentfoundation.org/QA/BugHunting_Session_3.5.0.-1

more detail on this bulk operation: http://nabble.documentfoundation.org/RFC-Operation-Spamzilla-tp3607474p3607474.html
Comment 9 Dominik Kopp 2012-08-13 21:29:16 UTC
in 3.5.4 the cc logo as well as the latex equation are looking OK.