Bug 162235 - Calc cell pasted as BMP to Writer and copied and pasted back results in a wider image than the original
Summary: Calc cell pasted as BMP to Writer and copied and pasted back results in a wid...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2024-07-28 10:41 UTC by Manu
Modified: 2024-09-10 13:17 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
bug Paste BMP screenshot (steps and explanations) (255.90 KB, image/jpeg)
2024-07-28 10:41 UTC, Manu
Details
bug Paste BMP calc file (steps and explanations) (111.64 KB, application/vnd.oasis.opendocument.spreadsheet)
2024-07-28 10:42 UTC, Manu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Manu 2024-07-28 10:41:47 UTC
Created attachment 195564 [details]
bug Paste BMP screenshot (steps and explanations)

Version: 24.2.4.2 (X86_64) / LibreOffice Community
Build ID: 51a6219feb6075d9a4c46691dcfe0cd9c4fff3c2
CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: fr-FR (fr_FR); UI: fr-FR
Calc: threaded

Related to the "Bug 161829 - trim a picture of the same size of a cell is very difficult (edit)": the first problem is described here.

Steps
1. Copy the A1 cell (9cm x 2cm)	
2. Special paste in Writer (as BMP) (new size is 9x1,99)
3. Paste the BMP in A2 and see, the size is increased (9,13 x 2,04)

I don't see any explanation why the BMP size increases.
Calc is perfectly aware the initial size is 9x1,99 as it displays the information Scale 101% an 102%.
And this new size overlapps the size of the current cell where it was paste. Therefore if the goal was to fit the cell, it doesn't work properly.

Is it possible to keep the original size or add a parameter in order to opt for no resizing when pasting a BMP picture? Thanks in advance.
Comment 1 Manu 2024-07-28 10:42:44 UTC
Created attachment 195565 [details]
bug Paste BMP calc file (steps and explanations)
Comment 2 Buovjaga 2024-09-10 13:17:28 UTC
Already seen in oldest of Linux 43all repo.

You can restore the original size by right-click in the image and selecting Original Size.

Arch Linux 64-bit
Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 880096c3a970389de9f1272509d2d03df046570a
CPU threads: 8; OS: Linux 6.10; UI render: default; VCL: kf6 (cairo+wayland)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: CL threaded
Built on 10 September 2024