[Libreoffice-bugs] [Bug 142677] New: Image size different from size shown in image properties upon DOCX and ODT Import

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Jun 5 23:36:00 UTC 2021


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

            Bug ID: 142677
           Summary: Image size different from size shown in image
                    properties upon DOCX and ODT Import
           Product: LibreOffice
           Version: 7.1.3.2 release
          Hardware: x86-64 (AMD64)
                OS: All
            Status: UNCONFIRMED
          Severity: minor
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: vorxborx at gmail.com

Description:
I have imported a document (exported by Google docs, applies both to the .docx
and .odt formats) that contains (several) full-page images (see attachments).
The images have a size of 1350x1920p (WxH) and are placed on A4 size pages,
scaled to fit the entire 21.0cm width, but are slightly taller than the full
page height, thus a bit is cut off at the bottom. This is all as intended.

Upon opening the document in Writer, these images now have a noticeable gap on
the right edge, and are also no longer cut off at the bottom. Writer has
apparently fitted the image to match the page height as its first priority. 
Notably, this gap on the right side does not appear on images that were
likewise scaled to be the full width, but were less than the full page in
height.

A second issue is that when opening the image properties, it still displays the
image width to be 21.0cm, despite actually being closer to 20.9cm. Saving and
reopening the document does not fix the issue. Changing the size, and then
changing it back does fix the issue, however, but must be repeated for every
image.

Steps to Reproduce:
1. Create an image of size 1350x1920p (or taller)
2. In a google doc, Insert the image so that it breaks text and has a fixed
position on the page, scaled to fit the full width (21.0cm) and slightly more
than the total height.
3. Export the doc as .docx OR .odt
4. Open in Writer

Actual Results:
The image now has a noticeable gap on the right side and no longer sticks over
the bottom of the page, apparently scaled to fit the max page height. 
In image properties, the image width is still reported to be 21.0cm, the full
width.

Expected Results:
In google docs and Word, the image continues to take up the full width and
sticks over the bottom edge of the page by a few millimeters, just like it was
initially set up.


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
Upon inspecting the unzipped .docx files, these were the only (notable)
differences in the document.xml among the different versions:

As originally exported:
<a:ext cx="7560000" cy="10735200"/>

Saved by Writer before fixing: (displayed as 21.0cm)
<a:ext cx="7560310" cy="10735310"/>

Saved by Writer after fixing the issue: (also displayed as 21.0cm)
<a:ext cx="7560310" cy="10692130"/>


Version: 7.1.3.2 / LibreOffice Community
Build ID: 10(Build:2)
CPU threads: 8; OS: Linux 5.10; UI render: default; VCL: kf5
Locale: de-DE (en_DE.UTF-8); UI: en-US
7.1.3-1
Calc: threaded

-- 
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/20210605/55e29b57/attachment.htm>


More information about the Libreoffice-bugs mailing list