Bug 166905 - UI: when image aspect ratio locked, width and height should be in same units
Summary: UI: when image aspect ratio locked, width and height should be in same units
Status: REOPENED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: UI (show other bugs)
Version:
(earliest affected)
25.2.4.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Images
  Show dependency treegraph
 
Reported: 2025-06-08 07:03 UTC by internationils
Modified: 2025-08-26 12:13 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Impossible ratio settings (207.81 KB, image/png)
2025-06-17 07:40 UTC, internationils
Details

Note You need to log in before you can comment on or make changes to this bug.
Description internationils 2025-06-08 07:03:13 UTC
When pasting an image into writer that is wider than the page, the aspect ratio is locked by default. Good.

When setting "relative to ... entire paragraph area" the Width changes from measurement units to %. Also good.

The Height should then also change to percent as opposed to remaining in measurement units. Basically, when aspect ratio is locked, changes in displayed units in one dimension should also change the units of the other dimension.

Also, with fixed aspect ratio, the related dimension should be "relative to ... <other_dimension>". As is, it is possible to select two "relative to" with both relating to page / paragraph width, this is confusing.
Comment 1 Mike Kaganski 2025-06-08 07:20:34 UTC
No.

I want my object width to be 50% of the width of the paragraph. But it has absolutely nothing to do with its height being relative to paragraph's height! The paragraph's height is variable - so seeing that it calculated e.g. 15% here for this current paragraph state, should I expect it to change when I add lines to the paragraph?
Comment 2 Mike Kaganski 2025-06-08 07:22:36 UTC
(In reply to internationils from comment #0)
> Also, with fixed aspect ratio, the related dimension should be "relative to
> ... <other_dimension>". As is, it is possible to select two "relative to"
> with both relating to page / paragraph width, this is confusing.

Where is that "both relating to page / paragraph width"? They refer to "page/paragraph", not to their width. Both page, and paragraph, have not only width, but also height.
Comment 3 Mike Kaganski 2025-06-08 07:26:48 UTC
And finally:

You say that when you set an object width to, say, 50% of the paragraph width, then seeing that its height is e.g. 60% of its width is more meaningful than seeing that its height is 5 cm? I can use the "5 cm" info, when thinking how will it look on the page. But what do I do with the ratio it gave me? It's Writer's job to keep the ratio, I use the lock exactly to offload the task to it, not to keep track how well does to succeed with that.
Comment 4 internationils 2025-06-17 07:40:22 UTC
Created attachment 201323 [details]
Impossible ratio settings

Thanks for the detailed answer, I hadn't thought it through completely and the "paragraph height" relativity does not make sense.

Reopening since it is possible to set the check marks in a way that is impossible:
- width related to paragraph
- AND height related to page
- AND aspect ratio locked

This is impossible (and these settings can be applied like this). 
Please let me know if you want to repurpose this bug, else please close and I will open a new one.
Comment 5 internationils 2025-06-17 07:41:00 UTC
Version: 25.2.3.2 (AARCH64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 10; OS: macOS 15.5; UI render: Skia/Metal; VCL: osx
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded