[Libreoffice-bugs] [Bug 51510] FILESAVE: Exporting documents with embedded SVG to doc or docx converts the image to low-resolution pixel graphics

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Mar 23 06:38:02 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=51510

--- Comment #22 from Mike Kaganski <mikekaganski at hotmail.com> ---
Created attachment 170646
  --> https://bugs.documentfoundation.org/attachment.cgi?id=170646&action=edit
An ODT with a scaled small SVG

Trying to export this ODT to DOCX will result in awful result.

The SVG there is very simple:

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 20 20"
stroke="black">
<path d="M1,1L19,19"/>
</svg>

It is defining a bounding box 21x21 logical units, and draws a diagonal from
1,1 to 19,19.

When exported to PNG, VectorGraphicData::ensureReplacement generates a 21x21
*pixels* bitmap, and then that bitmap is saved to the document (and is shown on
page scaled to requested dimensions).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210323/4bef23f8/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list