Bug 134305 - [EDITING] Grouped image refuses Original Size command
Summary: [EDITING] Grouped image refuses Original Size command
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-06-25 17:08 UTC by zzz
Modified: 2023-11-07 03:44 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
ImageGroupTest1.ods source data (12.60 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-06-25 17:08 UTC, zzz
Details
ImageGroupTest2.ods test result (12.31 KB, application/octet-stream)
2020-06-25 17:11 UTC, zzz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zzz 2020-06-25 17:08:27 UTC
Created attachment 162410 [details]
ImageGroupTest1.ods source data

Reproduction procedure:
(1) open attached ImageGroupTest1.ods
(2) shift-click select the 2 images and Right-click select "Group" command.
(3) resize the grouped image.
(4) select the grouped image.
(5) Right-click select "Original Size" command.

Expected result:
  The grouped image should return to the original size.
  For this example, exactly fit in cell range B2:C6

Actual result:
  Nothing happens. Grouped image stays resized.
  See attached ImageGroupTest2.ods

Frequency: 100%

This problem is further hurting because when you resize an image group by mouse,
but forgot to shift-drag to keep the aspect ratio, then you always distort your photo.
If you have noticed it immediately then Undo works, but if you missed that chance,
you can't repair it.
Non-grouped images can returned to original size (and aspect ratio) at any time late, even in a later session.
Grouped image behaviour is inconsistent with this.

P.S. Related bug:
Again in ImageGroupTest1.ods, this time:
(1) shift-click select both images but do not "Group" command.
(2) Resize the selection.
(3) Right-click select "Original Size" command.
The size of images will return to original, but their position are random, not the original position.
Comment 1 zzz 2020-06-25 17:11:38 UTC
Created attachment 162411 [details]
ImageGroupTest2.ods test result
Comment 2 sora34ce 2020-08-18 17:00:37 UTC
This is definitely an odd scenario. Both bugs still work even in modern devices. Any idea why this is so? I mean Undo helps but only slightly.

Version: 7.1.0.0.alpha0+
Build ID: 52820b52b3bca45e2db527d1cc5f4488b2e0b9d0
CPU threads: 8; OS: Mac OS X 10.15.6; UI render: default; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 3 Buovjaga 2021-03-18 15:41:57 UTC
Confirmed and also reproduced with other images. Already seen in 3.3.0 on Windows

(In reply to zzz from comment #0)
> P.S. Related bug:
> Again in ImageGroupTest1.ods, this time:
> (1) shift-click select both images but do not "Group" command.
> (2) Resize the selection.
> (3) Right-click select "Original Size" command.
> The size of images will return to original, but their position are random,
> not the original position.

I confirm this as well, but can you please open a new report for it? You can add me to the Cc field while you create it and I will confirm it.

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 4 QA Administrators 2023-03-20 03:26:47 UTC Comment hidden (obsolete)
Comment 5 zzz 2023-11-07 03:44:21 UTC
Symptom still happens in
Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: ja-JP (ja_JP); UI: en-US
Calc: CL threaded

The "Related bug" still remains too. The position of the lower image comes to the lower edge of the resized box.