Bug 145692 - Image doesn't resize with "Anchor: to cell (resize with cell)"
Summary: Image doesn't resize with "Anchor: to cell (resize with cell)"
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.2.2.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-15 08:25 UTC by Pierre-Eric Pelloux-Prayer
Modified: 2021-11-18 22:07 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
repro document (12.81 KB, application/vnd.oasis.opendocument.spreadsheet)
2021-11-15 15:14 UTC, Pierre-Eric Pelloux-Prayer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pierre-Eric Pelloux-Prayer 2021-11-15 08:25:25 UTC
Description:
Image' size isn't updated when "Anchor to cell (resize with cell)" is used.

Steps to Reproduce:
1. create a new Calc spreadsheet
2. Insert -> Image
3. Select "Anchor: to cell (resize with cell)"


Actual Results:
Image' size is unmodified (= doens't match the cell' size)

Expected Results:
Image' size is adapted to cell size


Reproducible: Always


User Profile Reset: No


OpenGL enabled: Yes

Additional Info:
By right-clicking the image, and selecting "Fit to Cell Size" once the image is properly resized and its size is updated if the cell' size changes.


Version: 7.2.2.2 / LibreOffice Community
Build ID: 20(Build:2)
CPU threads: 8; OS: Linux 5.14; UI render: default; VCL: gtk3
Locale: en-US (C); UI: en-US
Debian package version: 1:7.2.2-1
Calc: threaded
Comment 1 m_a_riosv 2021-11-15 14:53:38 UTC
Please attach a sample file.
Comment 2 Pierre-Eric Pelloux-Prayer 2021-11-15 15:14:18 UTC
Created attachment 176273 [details]
repro document

Here's an example file.
Comment 3 QA Administrators 2021-11-16 04:10:15 UTC Comment hidden (obsolete)
Comment 4 m_a_riosv 2021-11-16 17:55:59 UTC
Both images resize for me resizing the cell.
Version: 7.2.3.1 (x64) / LibreOffice Community
Build ID: 1d5dee817bde88d78dbcc0d00f88492568e131d5
CPU threads: 4; OS: Windows 10.0 Build 21390; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US Calc: CL
Comment 5 Pierre-Eric Pelloux-Prayer 2021-11-16 18:09:26 UTC
(In reply to m.a.riosv from comment #4)
> Both images resize for me resizing the cell.

Oh... This makes me realize that I probably misinterpretated what "Anchor: to cell (resize with cell)" really means.

"Resize with cell" is really "if the cell grows by X pixels, grow the image by X pixels" while I assumed it meant "resize + adapt to cell" (because I don't really see the use of image resizing without first scaling the image to the cell' size). 


--

Then maybe this bug should be turned into a feature request: add a "Anchor: to cell (adapt + resize with cell)" entry to the Insert->Image dialog.

Otherwise I guess it can be closed.