Bug 169332 - FILEOPEN XLSX Scaled images width is imported incorrectly
Summary: FILEOPEN XLSX Scaled images width is imported incorrectly
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.0 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:xlsx
Depends on:
Blocks: XLSX-Images
  Show dependency treegraph
 
Reported: 2025-11-07 22:05 UTC by Gabor Kelemen (Collabora)
Modified: 2025-11-20 17:39 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
Example file from Excel 2013 (20.20 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2025-11-07 22:05 UTC, Gabor Kelemen (Collabora)
Details
The example file in Excel and Calc side by side (131.77 KB, image/png)
2025-11-07 22:06 UTC, Gabor Kelemen (Collabora)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (Collabora) 2025-11-07 22:05:47 UTC
Created attachment 203809 [details]
Example file from Excel 2013

Attached simple file was made in Excel, inserting an image and scaling its height and width to a bit below 100%.

The height is imported correctly, but the width is slightly smaller than it should be.

1. Open attached example file
-> Notice the images width is 11,96 cm instead of the 12,09 cm indicated by Excel.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 620(Build:0)
CPU threads: 16; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: de-DE (hu_HU); UI: en-US
Calc: threaded

Same since 4.0, before it was a bit larger, but not correct still. Not recent, bibisect makes not much sense.
Comment 1 Gabor Kelemen (Collabora) 2025-11-07 22:06:08 UTC
Created attachment 203810 [details]
The example file in Excel and Calc side by side
Comment 2 jcline 2025-11-14 05:12:24 UTC
I can reproduce in Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 620(Build:0)
CPU threads: 32; OS: Windows 11 X86_64 (build 26100); UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded