Bug 90869 - EDITING: Interactive image crop tool allows crop outside of original image area, expands image
Summary: EDITING: Interactive image crop tool allows crop outside of original image ar...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
4.4.0.3 release
Hardware: All All
: low minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Image-Crop
  Show dependency treegraph
 
Reported: 2015-04-25 19:40 UTC by tmacalp
Modified: 2023-04-21 16:53 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (434.43 KB, application/vnd.oasis.opendocument.text)
2017-01-07 16:14 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tmacalp 2015-04-25 19:40:57 UTC
Description:
With the new interactive crop tool in LO 4.4 in Draw/Impress, it's possible to drag the handles outside the bounds of the image and expand the image.  When crop is then applied, the image area actually grows to fill that blank area.

Steps to reproduce:
1. New drawing
2. Insert image
3. Right click image and Crop Image
4. Drag one of the crop handles outside of the bounds of the image
5. Apply the crop

Expected:
The crop tool should only be able reduce the bounds of the image.  It should never cause the image area to expand outside of the bounds of the original image area.

Actual:
The image now has been "grown" out to fill the entire crop region.  If you select the image, you will see that the image now extends to fill your selected crop region.  

Notes:
The crop handles created when selecting the crop should still be allowed to extend beyond the borders of the image.  But the applied crop should never be allowed to "grow" the image to fill that region.
Comment 1 Yousuf Philips (jay) (retired) 2015-04-25 19:48:25 UTC
Confirmed, as mentioned by me in bug 86329 comment 18 answer 2.

Version: 5.0.0.0.alpha1+
Build ID: badec7478035008f514e0976a94438fe2e32dc40
TinderBox: Linux-rpm_deb-x86@45-TDF, Branch:master, Time: 2015-04-22_00:50:58
Comment 2 Yousuf Philips (jay) (retired) 2015-04-25 20:09:51 UTC
It should be noted that the non-interactive crop dialog (Format > Crop Image... - .uno:GrafAttrCrop) also allows you to do the same.
Comment 3 QA Administrators 2016-09-20 09:31:53 UTC Comment hidden (obsolete)
Comment 4 Telesto 2017-01-07 16:14:23 UTC
Created attachment 130242 [details]
Example file

Confirming with:
Version: 5.4.0.0.alpha0+
Build ID: 92a1ad1f36b6d3cc13135a8c0805508933011577
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2017-01-06_23:42:59
Locale: nl-NL (nl_NL); Calc: CL
Comment 5 QA Administrators 2018-06-02 03:10:45 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2020-06-03 03:48:33 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2022-06-04 03:33:11 UTC Comment hidden (obsolete)
Comment 8 Stéphane Guillou (stragu) 2023-04-21 16:53:08 UTC
Still the case in recent master build:

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5cd9de202765e243e41416802f3e4486b8a96f16
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded