[Libreoffice-bugs] [Bug 122625] New: FILESAVE: File size of Flat XML is much larger than for normal format when using linked images

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jan 10 08:37:47 UTC 2019


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

            Bug ID: 122625
           Summary: FILESAVE: File size of Flat XML is much larger than
                    for normal format when using linked images
           Product: LibreOffice
           Version: 6.1.4.2 release
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Impress
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: dirk.duschinger at yahoo.de

Description:
Hi,

I have a presentation in which I almost exclusively link graphics. Until now I
always saved the file in odp format and the file size was always very moderate
(~600kB). Since I wanted to explore something in the XML code, I saved the file
in fodp format and noticed that the file size increased to more than 13MB. A
quick look into the file confirmed my assumption: all graphics were apparently
included in the file as <office:binary-data>. 

A small test with a simple single page presentation, once with linked image and
once with the same image embedded, and a diff of the two files showed (except
for the header) this minor change:

    <    <text:p text:style-name="Standard"><draw:frame draw:style-name="fr1"
draw:name="Image1" text:anchor-type="paragraph" svg:width="6.6929in"
svg:height="3.6508in" draw:z-index="0"><draw:image loext:mime-type="image/png">
    ---
    >    <text:p text:style-name="Standard"><draw:frame draw:style-name="fr1"
draw:name="Image1" text:anchor-type="paragraph" svg:width="6.6929in"
svg:height="3.6508in" draw:z-index="0"><draw:image xlink:href="image.png"
xlink:type="simple" xlink:show="embed" xlink:actuate="onLoad"
draw:filter-name="<All formats>" loext:mime-type="image/png">

The binary-data block was apparently identical. Removing the
<office:binary-data> block in the fodp file and reopening it in LO worked fine
with the desired result, i.e. the linked graphic were still displayed.

So I assume that the embedding in fodp happens accidentally but can and should
be avoided. 

I performed another test with LO Writer, which showed a similar behavior.
Therefore I assume that it is a general problem of the Flat XML format in LO.

With kind regards,
Dirk

PS: my tests were performed with LibreOffice 6.1.4.2 10(Build:2)

Steps to Reproduce:
1. Create a new presentation in LO impress and insert a linked image
2. Save file in odp and fodp format

Actual Results:
File size of fodp file is unreasonably larger than in odp format

Expected Results:
File sizes should be comparable 


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:

-- 
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/20190110/41f83e54/attachment.html>


More information about the Libreoffice-bugs mailing list