Bug 133122 - Using a shape mask with a bitmap Shapes | Subtract alters aspect ratio of bitmap
Summary: Using a shape mask with a bitmap Shapes | Subtract alters aspect ratio of bitmap
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Draw (show other bugs)
Version:
(earliest affected)
3.5.7.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Shapes
  Show dependency treegraph
 
Reported: 2020-05-17 14:34 UTC by Derek Keats
Modified: 2023-09-06 06:09 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments
File showing an expression of the issue in a real example. (3.17 MB, application/vnd.oasis.opendocument.graphics)
2020-05-17 14:34 UTC, Derek Keats
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Derek Keats 2020-05-17 14:34:17 UTC
Created attachment 160935 [details]
File showing an expression of the issue in a real example.

When you make a mask to subtract areas from a bitmap, after applying the mask using right click, Shapes | Subtract, the resulting image has its aspect ratio altered. 

REPLICATION:

1. Create a new page
2. Add a bit map image to the page
3. Add a rectangle shape to cover the image
4. Add a shape above the rectangle (e.g, circle or hexagon)
5. Use the Shapes | Subtract to remove the hexagon from the rectangle
6. Then use the resulting shape with a hexagonal hole to create a hexagon crop of the image
7. Observe the aspect ratio has changed

EXPECTED:
The area of the image to which the mask was applied should remain the same, as should the size.

IMPRESS NOT AFFECTED:
Note that this only occurs in Draw. In Impress, the mask behaves as expected.
Comment 1 Derek Keats 2020-05-17 14:35:46 UTC
I am marking this as new as I confirmed it also on a different machine. I had also noticed it in earlier versions of Draw though I cannot confirm how far back.
Comment 2 Telesto 2020-05-17 15:38:48 UTC
Confirming with
7.0

and with
LibreOffice 3.5.7.2 
Build ID: 3215f89-f603614-ab984f2-7348103-1225a5b

Note: self-conformation is a thing around here..
Comment 3 Derek Keats 2020-05-20 06:16:41 UTC
Note that I have also just observed the same thing happening in Impress on the same version.
Comment 4 QA Administrators 2022-08-17 03:34:24 UTC Comment hidden (obsolete)
Comment 5 Derek Keats 2022-12-07 06:15:57 UTC
This bug is still present, and is now also present in Impress.

Version: 7.4.2.3 / LibreOffice Community
Build ID: 40(Build:3)
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: en-ZA (en_ZA.UTF-8); UI: en-ZA
Ubuntu package version: 1:7.4.2~rc3-0ubuntu1
Calc: threaded

The behaviour is exactly as I documented initially, and it still forces the use of a third tool to do this one thing. It would be really awesome if it could be fixed as I use Libreoffice for everything otherwise, and it is a fantastic suite.
Comment 6 Derek Keats 2023-09-06 06:09:41 UTC
This bug is still present as of the latest release. It would be so useful to have it resolved. Is there any chance of that happening? It is now several years!