Bug 155468 - Impress: Changing slide layout would make cropped image lose its height/width ratio
Summary: Impress: Changing slide layout would make cropped image lose its height/width...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Image-Crop Slide-Layout
  Show dependency treegraph
 
Reported: 2023-05-24 06:19 UTC by Franklin Weng
Modified: 2023-05-27 09:40 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
sample file with an image in it (98.93 KB, application/vnd.oasis.opendocument.presentation)
2023-05-24 06:19 UTC, Franklin Weng
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franklin Weng 2023-05-24 06:19:10 UTC
Description:
Insert an image in Impress, then cropped it to a smaller scope.  Then change the slide layout.  Then when changing the slide layout, for example, from  Blank Slide to Title, 2 content and content, the height/width ratio of the cropped image would be lost.

If the image was not cropped, it would keep the ratio while changing the slide layout.

Steps to Reproduce:
1. Start a new file in Impress
2. Insert an image
3. Crop it to a smaller scope and different ratio
4. Change the slide layout

Actual Results:
In some slide layout the cropped image would lose its height/width ratio.  But if the image is not cropped it won't lose.

Expected Results:
It should keep the ratio


Reproducible: Always


User Profile Reset: No

Additional Info:
Happen in Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 127eacf630e1712fd5addcabed404b2d33752311
CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: kf5 (cairo+xcb)
Locale: zh-TW (zh_TW.UTF-8); UI: en-US
Calc: threaded

But not test earlier versions yet
Comment 1 Franklin Weng 2023-05-24 06:19:57 UTC
Created attachment 187471 [details]
sample file with an image in it

Try cropping this file and change the slide layout.
Comment 2 Stéphane Guillou (stragu) 2023-05-24 21:18:30 UTC
Reproduced in recent master build:

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

Also reproduced in OOo 3.3, so inherited.