After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 564827 - Mantain aspect ratio doesn't adapt values in bulk resize images
Mantain aspect ratio doesn't adapt values in bulk resize images
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
2.10.x
Other Linux
: Normal normal
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2008-12-17 09:38 UTC by Paolo Benvenuto
Modified: 2011-07-05 14:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Paolo Benvenuto 2008-12-17 09:38:52 UTC
If you select various images and you issue tools -> resize images, the user expects that setting the mantain aspect ration check box should adapt automatically the width/heigh values when one of the two is modified.

That doesn't happen.

A similar check box does work in the image -> resize dialog (single image menu).
Comment 1 Michael Chudobiak 2009-05-28 20:32:50 UTC
This isn't really a bug, although it is confusing.

What we need is a gimpchainbutton (http://developer.gimp.org/api/2.0/libgimpwidgets/GimpChainButton.html) linking the height and width settings.

The "keep aspect ratio" control affects the actual generated image size, NOT the size of the bounding box set in the UI. There are two different ratios, so we would need one more control (the gimpchainbutton).

I'm not sure if we want to set libgimp as a dependency, though.

- Mike

Comment 2 Paolo Benvenuto 2009-05-28 21:42:40 UTC
I don't understand where you say the two situations aren't the same.

If I open an image, and I make
1. Image -> resize
2. Tools -> scale images

The situation with the two controls is the same. At least, it appears the same to me.
Comment 3 Michael Chudobiak 2009-05-29 00:58:20 UTC
It is not quite the same.

For Image->Resize, the aspect ratio is known because there is only one image, so the width/height fields can be locked to that ratio.

For Tools>Scale Images, the aspect ratio might be different for every image selected, so you can't automatically select the best width/height ratio in the UI.

The UI could be improved, but the two tools are different and need different UIs.

- Mike
Comment 4 Paolo Benvenuto 2009-05-29 07:32:21 UTC
If we work with pixels, multiple images may have different aspects: landscape, square, portrait, etc. "Mantain aspect ratio" could signify: use those pixels as maximum height and width, and mantain aspect ratio; on the contrary, not "Mantain aspect ratio" could signify that all the photos are reduced to the given size.

If we work with porcentages, every photo is reduced the given %. No problem.

In every case, I don't see any difficulty in having the height and width values changing correspondently if "Mantain aspect ratio" is selected.
Comment 5 Paolo Bacchilega 2011-07-05 14:18:04 UTC
Now width and height are bound together when the size is expressed in percentage and "keep ratio" is active.  

Updating width and height when the size is expressed in pixels makes no sense when many images are selected, it could be done when a single image is selected but this special case makes things more confused.