https://bugs.documentfoundation.org/show_bug.cgi?id=173164
Bug ID: 173164
Summary: OOXML export: Save document thumbnail in DOCX, XLSX
and PPTX when "Save preview image with this document"
is enabled
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: enhancement
Priority: medium
Component: filters and storage
Assignee: [email protected]
Reporter: [email protected]
Description:
LibreOffice can save a thumbnail preview inside OpenDocument files when
"Save preview image with this document" is enabled in File > Properties >
General.
However, when a document is exported to OOXML formats (DOCX, XLSX or PPTX),
the preview image is not stored in the resulting OOXML package.
This means that file managers and other applications that use the embedded
document thumbnail cannot display a preview for OOXML documents created by
LibreOffice.
For example, KDE's office document thumbnailer can use an embedded preview
image instead of rendering the complete document. ODT/ODS/ODP files created
by LibreOffice can therefore have previews, while equivalent DOCX/XLSX/PPTX
files usually do not.
OOXML packages support a package thumbnail through a relationship of type:
http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail
It would be useful if LibreOffice exported such a thumbnail when
"Save preview image with this document" is enabled, similarly to the existing
behavior for OpenDocument files.
Steps to Reproduce:
1. Create a new Writer document and add some visible content.
2. Open File > Properties > General.
3. Enable "Save preview image with this document".
4. Save the document as ODT.
5. Save the same document as DOCX.
6. Compare the contents of both files as ZIP packages, or inspect them with
a file manager that supports embedded document thumbnails.
7. The same behavior can be reproduced with ODS/XLSX and ODP/PPTX.
Actual Results:
LibreOffice stores a preview thumbnail in OpenDocument files, but does not
store an equivalent thumbnail when exporting to DOCX, XLSX or PPTX.
Therefore applications that rely on an embedded document thumbnail cannot
show a preview for these OOXML files.
Expected Results:
When "Save preview image with this document" is enabled, LibreOffice should
also store a preview thumbnail when exporting DOCX, XLSX and PPTX files.
Reproducible: Always
User Profile Reset: No
Additional Info:
I have a working prototype patch implementing this behavior.
I can attach the patch to this report.
--
You are receiving this mail because:
You are the assignee for the bug.