Bug 132562 - Fixed column size and fixed row size don't match on the screen. Inserted image matches or doesn't match depending on whether the image has dpi set or not.
Summary: Fixed column size and fixed row size don't match on the screen. Inserted imag...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: x86-64 (AMD64) All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calc-Images
  Show dependency treegraph
 
Reported: 2020-04-30 17:58 UTC by iggy.h
Modified: 2025-03-19 15:34 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Pictures and spreadsheet. (453.54 KB, application/x-zip-compressed)
2020-04-30 17:58 UTC, iggy.h
Details
Pexeso2025.zip retest files. (568.98 KB, application/x-zip-compressed)
2025-03-19 15:34 UTC, iggy.h
Details

Note You need to log in before you can comment on or make changes to this bug.
Description iggy.h 2020-04-30 17:58:28 UTC
Created attachment 160144 [details]
Pictures and spreadsheet.

1. Fixed column size and fixed row size (4x4cm) don´t match on the screen. (The
height is larger.) But they match on the pdf export. (In Excel 2010
there is match for me on the screen, but not match on the pdf export -
worse.)

2. When I insert a square jpg image with dpi set (X pixels = Y pixels,
X dpi = Y dpi), the aspect ratio of the inserted image in properties
matches -  it is 1:1, OK.
Scale image to cell size is OK, too.
Pdf export is OK, too.
The view on the screen is fill-full image to cell, and because of
point 1 it is not square - no 1:1. (Measured on screenshot.)

3. When I insert a square jpg image without dpi set (X pixels = Y
pixels), the aspect ratio of the inserted image in properties does not
match - it is not 1:1, nOK.
Scale image to cell size is correct in width, bud the height is set by aspect
ratio from an incorrect import. (The height is lower.)
Pdf export is not square, with space border on the bottom.
The view on the screen is not fill-full to cell, with space border on the bottom,
and maybe because of point 1 it is square. (Measured on screenshot.)
Comment 1 Buovjaga 2021-03-18 15:22:44 UTC
Confirmed. The images in C1 and C2 leave a gap at the bottom of the cell. This is already seen in 3.3.0 on Windows 10.

Arch Linux 64-bit
Version: 7.2.0.0.alpha0+ / LibreOffice Community
Build ID: 48570b9b5e4939069f8a1a2541fd4efe6f2bb0aa
CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: kf5
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 18 March 2021
Comment 2 QA Administrators 2023-03-19 03:25:39 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2025-03-19 03:12:04 UTC Comment hidden (obsolete)
Comment 4 iggy.h 2025-03-19 15:34:10 UTC
Created attachment 199903 [details]
Pexeso2025.zip retest files.
Comment 5 iggy.h 2025-03-19 15:34:40 UTC
Retest 2025, LibreOffice 25.2.1.2:

NODPI - image 2025jesterkanodpi.jpg 314x314px without dpi set.
100DPI - 2025jesterka100dpi.jpg similar image 314x314px with dpi set to 100 dpi.

2025Pexeso.ods file has 6 tabs, exported to 6 pdfs:

2025Pexeso-nodpi.pdf
NODPI after Insert Image and Fit to Cell Size: 3.87 x 4 cm - not OK.

2025Pexeso-nodpi2.pdf
NODPI after Insert Image and Original Size and Fit to Cell Size: 4 x 4 cm - OK


2025Pexeso-nodpi3.pdf
NODPI after Insert Image and Fit to Cell Size and Position and Size manually Width set to 4 cm: 4 x 4 cm - OK.

2025Pexeso-nodpi4.pdf
NODPI after Insert Image: 7.54 x 7.86 cm - not OK
NODPI after Insert Image and Original Size: 7.52 x 7.52 cm - square, quite OK.

2025Pexeso-100dpi.pdf
100DPI after Insert Image and Fit to Cell Size: 4 x 4 cm - OK.

2025Pexeso-100dpi2.pdf
100DPI after Insert Image: 7.98 x 7.98 cm - quite OK
100DPI after Insert Image and Original Size: 7.97 x 7.97 cm - quite OK

(314 x 2.54) / 100 = 7.9756

Result:
All pdf exports appeared as on screen - OK.
The Bug is quite resolved now, because manually corrected size is OK for NODPI and 100DPI too.
100DPI Insert Image works correctly.
NODPI Insert Image function still does not work correctly, because Width and Height are different after insert.
Original Size function change NODPI w/h ratio to square and then Fit to Cell Size function works correctly for NODPI too.
Original Size function change slightly 100DPI image size.