Bug 168886 - EMF image cropped to different size than the original one
Summary: EMF image cropped to different size than the original one
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
26.2.0.0 alpha0+ master
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on: 168884
Blocks: EMF-WMF
  Show dependency treegraph
 
Reported: 2025-10-16 10:17 UTC by Piotr Osada
Modified: 2025-10-23 15:02 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Image comparison (64.85 KB, application/pdf)
2025-10-16 10:32 UTC, Piotr Osada
Details
'Original good image' (extracted from MS Word saved *.docx.zip) (31.55 KB, image/x-emf)
2025-10-16 13:29 UTC, Piotr Osada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Osada 2025-10-16 10:17:47 UTC
+++ This bug was initially created as a clone of Bug #168884 +++

Steps:
1) Insert Example EMF from attachment 203351 [details] into LO (Writer, Impress, Calc).

Result:
The image is cropped.

Expected:
Pasted bar-chat-image should be in the same proportions as original view inserted directly from Origin software from the attachment 203355 [details] (tdf#168884_Bar_plot_with_Labels.opju).
 


Version: 25.8.2.2 (X86_64)
Build ID: d401f2107ccab8f924a8e2df40f573aab7605b6f
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Raster; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded

Version: 25.8.1.1 (X86_64)
Build ID: 54047653041915e595ad4e45cccea684809c77b5
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: pl-PL (pl_PL); UI: pl-PL
Calc: CL threaded

Version: 24.2.7.2 (X86_64) / LibreOffice Community
Build ID: ee3885777aa7032db5a9b65deec9457448a91162
CPU threads: 16; OS: Windows 10.0 Build 26100; UI render: Skia/Raster; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded
Comment 1 Piotr Osada 2025-10-16 10:32:31 UTC
Created attachment 203360 [details]
Image comparison
Comment 2 Piotr Osada 2025-10-16 10:37:35 UTC
The same in:
Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d60ff8c8bd4e3ebf8f84f53448ead3c838332ea9
CPU threads: 16; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: pl-PL (pl_PL); UI: en-US
Calc: CL threaded
Comment 3 Piotr Osada 2025-10-16 13:29:26 UTC
Created attachment 203371 [details]
'Original good image' (extracted from MS Word saved *.docx.zip)

While attachment 203351 [details]: Example EMF from the Bug 168884 
was made by (Writer):
1) Copy Graph as Image (in Origin Pro)
2) Paste into Writer
3) Save as DOCX
4) Extract from *.docx.zip

This was made by (MS Word):
1) Copy Graph as Image (in Origin Pro)
2) Paste into MS Word
3) Save as DOCX
4) Extract from *.docx.zip

As a result, there is about twice as much EMR records in MS Word saved EMF-image. Compared by:
1) EMFParser
https://download.cnet.com/emf-parser/3000-2383_4-10558240.html

2) WinMerge
https://winmerge.org/
Comment 4 Piotr Osada 2025-10-16 13:30:54 UTC
'Original good image' (attachment 203371 [details]) displays correctly - uncropped.
Comment 5 WillieHawkins 2025-10-23 07:30:28 UTC
+++ This report was originally cloned from Bug #168884 +++

Steps to reproduce:

Insert the sample EMF file from attachment 203351 [details] into LibreOffice (Writer, Impress, or Calc).

Actual result:
The inserted image appears cropped.

Expected result:
The bar chart image should maintain the same proportions as the original version shown when inserted directly from the source software (attachment 203355 [details]tdf#168884_Bar_plot_with_Labels.opju).

Tested versions:

Version: 25.8.2.2 (x86_64)
Build ID: d401f2107ccab8f924a8e2df40f573aab7605b6f
CPU threads: 16; OS: Windows 11 (build 26100); UI render: Skia/Raster; VCL: win
Locale: pl-PL; UI: en-US; Calc: CL threaded

Version: 25.8.1.1 (x86_64)
Build ID: 54047653041915e595ad4e45cccea684809c77b5
CPU threads: 16; OS: Windows 11 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: pl-PL; UI: pl-PL; Calc: CL threaded
https://download.cnet.com/emf-parser/3000-2383_4-10558240.html https://geometrydash-3d.io

Version: 24.2.7.2 (x86_64) / LibreOffice Community
Build ID: ee3885777aa7032db5a9b65deec9457448a91162
CPU threads: 16; OS: Windows 10 (build 26100); UI render: Skia/Raster; VCL: win
Locale: pl-PL; UI: en-US; Calc: CL threaded
Comment 6 Piotr Osada 2025-10-23 15:02:56 UTC
(In reply to WillieHawkins from comment #5)

Willie, have you tested this behavior? What was your configuration?
I suppose not the same as me :-)