[Libreoffice-bugs] [Bug 123396] LO Writer automatically replaces SVGs embedded in (F)ODT files with an embedded low-resolution PNGs and drops the SVGs from the documents

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Sep 3 06:52:40 UTC 2021


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

--- Comment #7 from Nikolaj <consulting at yandex.ru> ---
Some research into this error. Lets assume we have an embedded svg

<draw:image draw:mime-type="image/svg+xml">
  <office:binary-data>
    Some svg binary data
  </office:binary-data>
</draw:image>

After saving Writer adds png data like

<draw:image draw:mime-type="image/svg+xml">
  <office:binary-data>
    Some svg binary data
  </office:binary-data>
</draw:image>
<draw:image draw:mime-type="image/png">
  <office:binary-data>
    Some binary data
  </office:binary-data>
</draw:image>

After opening the file we get exactly png data, not svg. If we delete png data
the file will open correctly.

Funny enough if I change the order (first png, then svg) the file will once
again open correctly.

-- 
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/20210903/3c19fcb5/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list