Bug 43063 - INSERTED SVG converted to PNG when EXPORTED as SVG
Summary: INSERTED SVG converted to PNG when EXPORTED as SVG
Status: RESOLVED DUPLICATE of bug 43065
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
Master old -3.6
Hardware: Other macOS (All)
: medium critical
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-18 05:30 UTC by rk601
Modified: 2011-11-19 00:08 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Diamond Shape generated by DRAW (1.75 KB, image/svg+xml)
2011-11-18 05:30 UTC, rk601
Details
Diamond Shape SVG Re-saved by DRAW (5.73 KB, image/svg+xml)
2011-11-18 05:31 UTC, rk601
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rk601 2011-11-18 05:30:39 UTC
Created attachment 53651 [details]
Diamond Shape generated by DRAW

When an SVG picture is INSERTED into DRAW then the exported SVG picture is converted into a PNG (BITMAPPED/Raster Image). 

As an example, we tested the desired functionality in the Master:

LibO-dev 3.5.0 
Build ID: 8f87c3d-5d03837-adcf6d5-c4bb9bd
On OSX 10.6.8

Located at:

http://dev-builds.libreoffice.org/daily/MacOSX_10.6.7_Intel_no-moz/master/2011-11-16_01.40.47/

with

master~2011-11-16_01.40.47_LibO-Dev_OOO350m1_MacOS_x86_install_en-US.dmg

Steps to reproduce:

1. Start LibreOffice and choose File -> New -> Drawing.
2. Select Insert -> Picture -> From File...
3. Select Diamond Shape.svg (we used Diamond Shape generated by DRAW from BUG #43061)
4. Either modify the SVG picture (like resize it) or not.
5. Select File -> Export...
6. Enter a file name (we used Re-Saved Diamond Shape).
7. Choose File Type of SVG.
8. Save the SVG file.
9. Open the saved SVG file with any "robust" Text-Editor (Please see the SVG
results below.)

Expected results: The SVG picture will remain a SVG picture.
Actual results: The re-saved SVG picture is converted to PNG. See the below sample of SVG code (notice that the SVG is now "data:image/png"):

<image x="1349" y="1480" width="7019" height="9083" xlink:href="data:image/png;base64,...>
Comment 1 rk601 2011-11-18 05:31:26 UTC
Created attachment 53652 [details]
Diamond Shape SVG Re-saved by DRAW
Comment 2 Rainer Bielefeld Retired 2011-11-19 00:08:15 UTC
This one is a DUP of "Bug 43065 - DRAW, WRITER, etc Modifies SVG "stroke-width", it describes an unavoidable consequence of the current behavior. The inserted picture is no longer a vector graphic, and so it can't become a vector graphic when exported. the exported reult only can be a vector svg view box with an embedded pixel picture.

Further research will have to be done in Bug 43065

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