Bug 127745 - FILEOPEN DOCX Image appears unexpectedly cropped in header and body
Summary: FILEOPEN DOCX Image appears unexpectedly cropped in header and body
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Images
  Show dependency treegraph
 
Reported: 2019-09-24 13:42 UTC by NISZ LibreOffice Team
Modified: 2020-05-23 12:33 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
The sample file opened in LibreOffice 4.2 and 4.1 (291.65 KB, image/png)
2019-09-24 13:42 UTC, NISZ LibreOffice Team
Details
Sample docx opened in Libreoffice 4.1 and 6.4 Master (285.70 KB, image/png)
2019-09-24 13:43 UTC, NISZ LibreOffice Team
Details
Sample docx document in side by side MSO Word and LO6.4 Master Writer (157.74 KB, image/png)
2019-09-24 13:43 UTC, NISZ LibreOffice Team
Details
The sample file (64.48 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-09-24 13:44 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
Description NISZ LibreOffice Team 2019-09-24 13:42:09 UTC
Description:
In Word the Images have no crop set, but in LO 6.4 “master” they appear cropped.

Steps to Reproduce:
Open the sample DOCX in Word and Writer 6.4 as well

Actual Results:
In Word there is no crop on the two images but in Writer there is.

Expected Results:
The full images should be visible.


Reproducible: Always


User Profile Reset: No



Additional Info:
LibreOffice details:
Version: 6.4.0.0.alpha0+ (x64)
Build ID: 41cd3e8e817c8c33a13608e62eeb06ce2c6977e4
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@62-TDF, Branch:master, Time: 2019-09-01_22:04:10
Locale: hu-HU (hu_HU); UI-Language: en-US
Calc: threaded

The same happens since 4.2. Before even less of the images was visible.
Comment 1 NISZ LibreOffice Team 2019-09-24 13:42:49 UTC
Created attachment 154443 [details]
The sample file opened in LibreOffice 4.2 and 4.1
Comment 2 NISZ LibreOffice Team 2019-09-24 13:43:35 UTC
Created attachment 154444 [details]
Sample docx opened in Libreoffice 4.1 and 6.4 Master
Comment 3 NISZ LibreOffice Team 2019-09-24 13:43:55 UTC
Created attachment 154445 [details]
Sample docx document in side by side MSO Word and LO6.4 Master Writer
Comment 4 NISZ LibreOffice Team 2019-09-24 13:44:13 UTC
Created attachment 154446 [details]
The sample file
Comment 5 Durgapriyanka 2019-09-24 16:26:39 UTC
Thank you for reporting the bug. I can reproduce the bug in

Version: 6.3.0.0.alpha0+
Build ID: b6b28931435e44aca92b8c0e1659f701e3ed1a87
CPU threads: 2; OS: Windows 6.1; UI render: default; VCL: win; 
TinderBox: Win-x86@42, Branch:master, Time: 2019-01-30_06:57:04
Locale: en-US (en_US); UI-Language: en-US
Calc: threaded

In
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4 , The images are not cropped, but they appear to be expanded.
Comment 6 Gabor Kelemen (allotropia) 2020-05-23 12:33:38 UTC
This looks good now since:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=2abe9837deee3823c7928a76b5b2f94f1464f1a3

author	Miklos Vajna <vmiklos@collabora.com>	2020-05-13 17:59:34 +0200
committer	Miklos Vajna <vmiklos@collabora.com>	2020-05-13 21:29:25 +0200

DOCX import: fix interaction between the crop and the wrap polygon of images

@Miklos Thanks for fixing this!