[Libreoffice-bugs] [Bug 123396] New: 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
Tue Feb 12 08:47:56 UTC 2019


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

            Bug ID: 123396
           Summary: LO Writer automatically replaces SVGs embedded in
                    (F)ODT files with an embedded low-resolution PNGs and
                    drops the SVGs from the documents
           Product: LibreOffice
           Version: 6.1.3.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: ernst at pleiszenburg.de

Description:
LO Writer automatically replaces SVGs embedded in (F)ODT files with an embedded
low-resolution PNGs and drops the SVGs from the documents. This bug is
consistently present in various documents and always reproducible. The
"replacement PNGs" are of very low quality / resolution, which can apparently
not be adjusted - rendering certain types of documents unusable.

Steps to Reproduce:
(See attached documents.)

Let's say there is an "original", previously known to work text document: 
demo_01_svg-plus-png_png-shown.fodt

It has an SVG in a frame in the top right corner of the page. Looking at the
plain XML, one can see an SVG and a PNG inside the frame ("stacked").

Open the document. Change it (a single space is enough) and save it once. Keep
it open or re-open it, edit it AGAIN for a second time (yet another space for
instance) and save again. Before, in-between and after, export to PDF and check
the results.

Actual Results:
If the original document, demo_01_svg-plus-png_png-shown.fodt, is opened with
LO Writer 6.1, only the PNG is shown and used for PDF export.

Because this was really annoying (and I needed the document to work), I looked
into the XML and removed the PNG, leaving ONLY the SVG. An example is given in
demo_02_svg-only_svg-shown.fodt. If opened with LO Writer 6.1, the SVG is shown
properly and the PDF export also uses the SVG.

If the new document is saved ONCE, the PNG is added "underneath" the SVG like
before, restoring (more or less) the "original" state of the document, see
demo_03_saved-once_svg-and-png_png-shown.fodt. If re-opened, only the PNG is
shown.

If the new document is saved TWICE (or more) - even without any actual edits -
the SVG is DROPPED from the document, leaving ONLY the PNG inside, see
demo_04_saved-twice_svg-dropped_png-shown.fodt.

Expected Results:
LO Writer shoud (a) display the SVG and (b) use it when exporting the document
to PDF. LO Writer should NOT alter the SVG or replace it when (unrelated) edits
are made to the document.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Linux: openSUSE Leap 42.3 x86_64, unmodified official distribution packages

Last LO version likely not affected: 6.0
LO version bug was likely introduced with: 6.1

-- 
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/20190212/6371e3f7/attachment-0001.html>


More information about the Libreoffice-bugs mailing list