Bug 80281 - FORMATTING: "Keep aspect ratio" checkbox of images or photos not always honoured
Summary: FORMATTING: "Keep aspect ratio" checkbox of images or photos not always honoured
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.3.0.1 rc
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords:
: 112377 (view as bug list)
Depends on:
Blocks: Image-Dialog
  Show dependency treegraph
 
Reported: 2014-06-20 10:42 UTC by Matthias Basler
Modified: 2023-11-08 11:16 UTC (History)
6 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 Matthias Basler 2014-06-20 10:42:21 UTC
As a user I expect that the aspect ratio of an image is kept intact if the corresponding checkbox "Keep aspect ratio" is set, no matter *when* it was set.

To reproduce:
1. Open a new text file.
2. Insert an image or photo into the page
3. Double-click on image to open image properties dialog
4. Ensure the "Keep aspect ratio" checkbox is off.
4. Choose a width of e.g. 20% (relative to text area)
5. *Then* check the "Keep aspect ratio" checkbox
6. Click OK

Expected result:
- Since the checkbox was checked when OK was clicked, the image should be scaled proportionally

Actual result:
- Since the checkbox was unchecked in the moment when the new size was *entered*, it did not scale the image proportionally when the dialog was closed.

I propose that as soon as the "Keep aspect ratio" checkbox is set, the aspect ratio is forced back to the image ratio the photo had when the dialog was opened, by honouring either the width or height parameter, whatever was changed last. This would be a behaviour consistent with several image processing applications I use.

(Side node: It would be nice if there were a possibility to restore the photos original aspect ratio at any time, but this would go as another feature request.)

Operating System: Windows 7
Version: 4.3.0.1 rc
Comment 1 pierre-yves samyn 2014-06-20 12:21:10 UTC
Hi

I reproduce on windows 7/64
The proposed functioning seems good to me... I set status to New

(In reply to comment #0)
> (Side node: It would be nice if there were a possibility to restore the
> photos original aspect ratio at any time

Yes...

It is at least possible to restore the original size, then check the option to keep the ratio, then change the dimensions... not direct so.

Images are now (Version: 4.3) scaled proportionally by default (mouse).
The dialogue will be less useful for this ?

Regards
Pierre-Yves
Comment 2 QA Administrators 2015-07-18 17:44:19 UTC Comment hidden (obsolete)
Comment 3 Matthias Basler 2015-07-19 08:13:58 UTC
Bug is still present (and unchanged) in LO4.4.4 on Win7 64 Bit.
Comment 4 QA Administrators 2016-09-20 10:18:27 UTC Comment hidden (obsolete)
Comment 5 raal 2017-09-26 18:33:21 UTC
*** Bug 112377 has been marked as a duplicate of this bug. ***
Comment 6 QA Administrators 2018-09-27 02:42:21 UTC Comment hidden (obsolete)
Comment 7 Thomas Lendo 2020-08-16 23:00:41 UTC
Repro with
Version: 7.0.0.3
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded
Comment 8 Stéphane Guillou (stragu) 2023-03-27 21:42:56 UTC
In my opinion, this is a "won't fix".
The "keep aspect ratio" option can be used to "lock" the width and height values together when they are changed, and some users will want to have that setting on _with an aspect ratio different from the original_.

The order matters, and it is not difficult to first turn the setting on, before changing any value. (Or undo unwanted changes)

UX team, would you agree?
Comment 9 Heiko Tietze 2023-03-28 08:09:39 UTC
I can follow the discomfort in switching the option on after some changes have been done. However this is how it usually works in other programs too. And how could you know whether the one or the other parameter has changed (in order to adopt post-hoc).

What we could do is to check the aspect ration checkbox by default (for images). We scale images proportionally by default when using the mouse (you have to press Shift for open aspect ratio), while the opposite is true for shapes.
Comment 10 Stéphane Guillou (stragu) 2023-03-29 15:05:00 UTC
(In reply to Heiko Tietze from comment #9)
> What we could do is to check the aspect ration checkbox by default (for
> images). We scale images proportionally by default when using the mouse (you
> have to press Shift for open aspect ratio), while the opposite is true for
> shapes.

I think that makes sense. It would make it more similar to what MS Office does. See my comment in bug 153919#c8

This request is already in bug 125239.

Heiko, do you want to close this as "won't fix" or do you want it discussed at the next UX meeting?
Comment 11 Heiko Tietze 2023-03-30 08:14:20 UTC Comment hidden (off-topic)
Comment 12 Heiko Tietze 2023-04-11 12:39:36 UTC
We discussed the topic in the design meeting.

Proportional scaling is enabled for images while using the mouse and we should do the same when working with the dialog. So simply check "Keep ratio" in the Position & Size dialog by default for images.