Bug 166084 - The emf image in this .docx file does not display correctly
Summary: The emf image in this .docx file does not display correctly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: EMF-WMF
  Show dependency treegraph
 
Reported: 2025-04-08 08:28 UTC by Frederic Parrenin
Modified: 2025-04-10 21:45 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
The .docx file to reproduce the problem (5.03 MB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2025-04-08 08:29 UTC, Frederic Parrenin
Details
EMF displayed correctly in MS Paint (485.91 KB, image/png)
2025-04-08 17:07 UTC, Piotr Osada
Details
Shift EMF content in LO25.2.2.2 (490.87 KB, image/png)
2025-04-08 17:15 UTC, Piotr Osada
Details
EMF in Word (638.74 KB, image/png)
2025-04-08 17:24 UTC, Piotr Osada
Details
image1.emf records (96.18 KB, text/plain)
2025-04-09 09:32 UTC, Piotr Osada
Details
Extracted EMF image (11.87 MB, image/emf)
2025-04-10 21:45 UTC, Bartosz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Frederic Parrenin 2025-04-08 08:28:30 UTC
Description:
The emf image in this .docx file does not display correctly in LO.

Steps to Reproduce:
Steps:
- Open the attached .docx file in LO and Word
- Compare the display of the image
=> some elements are missing or misplaced in LO

Actual Results:
The emf image does not display as in Word.

Expected Results:
The emf image should display as in Word.


Reproducible: Always


User Profile Reset: No

Additional Info:
None
Comment 1 Frederic Parrenin 2025-04-08 08:29:01 UTC
Created attachment 200220 [details]
The .docx file to reproduce the problem
Comment 2 V Stuart Foote 2025-04-08 15:29:02 UTC
Extracting the image1.emf from the media folder of .DOCX OOXML archive.

Opening the EMF into MS Paint, and a copy into LO Draw (master against 25.8.0),
comparing the two renderings.

- LO is rotating the vertical chart axis labels 180°
- LO is dropping the "Black" trace of Global surface air temperature anomoly
- LO is not honoring a clip area of the insert map image in panel B, so the whole source bitmap image (PNG or JPEG?) is shown
Comment 3 Piotr Osada 2025-04-08 17:07:14 UTC
Created attachment 200230 [details]
EMF displayed correctly in MS Paint

Problematic image is a combination of images, texts, ?table/frames/rectangles? with transparent background.
Microsoft Paint 11.2502.161.0 (Windows 11).
Comment 4 Piotr Osada 2025-04-08 17:15:19 UTC
Created attachment 200231 [details]
Shift EMF content in LO25.2.2.2

Version: 25.2.2.2 (X86_64) / LibreOffice Community
Build ID: 7370d4be9e3cf6031a51beef54ff3bda878e3fac
CPU threads: 8; OS: Windows 11 X86_64 (10.0 build 26100); UI render: Skia/Vulkan; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded
Comment 5 Piotr Osada 2025-04-08 17:24:42 UTC
Created attachment 200232 [details]
EMF in Word

Microsoft® Word dla Microsoft 365 MSO (wersja 2502 kompilacji 16.0.18526.20168) 64-bitowa
Comment 6 Piotr Osada 2025-04-09 09:32:12 UTC
Created attachment 200243 [details]
image1.emf records

EMF structure (records [1]) extracted by Kyktir [2] (version: 2.0.0.4).


[1]
https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-emf/1eec80ba-799b-4784-a9ac-91597d590ae1

[2]
https://www.kyktir.info/

[3]
https://docs.winking.be/Tn/Article/320
Comment 7 Bartosz 2025-04-10 21:45:42 UTC
Created attachment 200287 [details]
Extracted EMF image