Bug 158061 - Aspect ratio doesn't work in the graphics styles
Summary: Aspect ratio doesn't work in the graphics styles
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
3.5.0 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2023-11-04 17:36 UTC by otula
Modified: 2023-11-06 06:50 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description otula 2023-11-04 17:36:24 UTC
Description:
If you want to apply styles to images and you'll set the target image size, the keep aspect ratio requirement is ignored, making this property completely useless.

Steps to Reproduce:
1.F11 - Frame Styles – Graphics – Edit Style… Type
2. Width: 5 cm
3. Height: Auto
4. Keep Ratio
5. OK
6. Insert – Image…
7. The inserted image is not the expected size, but that's okay. I doubleclick on the "frame" style and then back on "graphics".


Actual Results:
Now the image has the correct width, but the height is completely wrong. I have tried it also in LO Writer 7.6.

Expected Results:
The image has the correct width and the correct height.


Reproducible: Always


User Profile Reset: No

Additional Info:
There is a video here: https://vimeo.com/881222549?share=copy 
Password is: writer (a public video didn't work).
Comment 1 Steven Casey 2023-11-05 01:38:14 UTC
Thank you for reporting this bug. 

It looks like the styles aren't being applied at all for graphics regardless of if "keep ratio" is ticked or unticked. When inserting an image using style:frame the style is used as expected. 

I can confirm that the bug is present in

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c0c8cffd3541e3cd616c96791b04e7ebf2b2ed03
CPU threads: 32; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Version: 7.6.2.1 (X86_64) / LibreOffice Community
Build ID: 56f7684011345957bbf33a7ee678afaf4d2ba333
CPU threads: 32; OS: Windows 10.0 Build 22621; UI render: Skia/Vulkan; VCL: win
Locale: en-US (en_US); UI: en-US
Calc: CL threaded

Additional Action:
Reduced earliest affected version to "7.6.2.1" from "24.2.0.0.alpha0+"

Please update the version further if you notice this bug present in earlier versions.
Comment 2 Buovjaga 2023-11-06 06:50:56 UTC
In older versions, the Keep ratio checkbox was disabled, but the behaviour with switching to Frame and Graphics styles was the same even in 3.5. There are many reports related to Keep ratio, but I could not find anything exactly matching this.