GNOME Bugzilla – Bug 564827
Mantain aspect ratio doesn't adapt values in bulk resize images
Last modified: 2011-07-05 14:18:04 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).
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
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.
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
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.
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.