GNOME Bugzilla – Bug 68106
transform tool scaling lock ratio acts funny
Last modified: 2004-06-22 09:37:29 UTC
When using the transform tool to do scalaing, you can hold down ctrl+alt to get it to "lock" the ratio, which is normally what one wishes to do when scaling. However, because ctrl+alt seems to be more a combination of independant axis locks, it doesn't behave in a very useful manner...dragging the mouse down and to the left causes the layer to scale at a rate different than one would expect. Then, bringing the mouse back to the original position does not bring the layer back to the original size. How about a checkbox on the tool options for "fixed ratio" or something?
I can confirm this for 1.2 cvs. The hot keys just don't do what they say they do. The chain on the info dialog would certainly be a solution, but first & foremost is to fix what's there. I don't think it'd be difficult to make the info dialog of the scale tool behave like the top frame of the scale image dialog. I think it should probably be done in 1.2. In any case, the bug (the hot keys not working) needs fixing. I suggest raising the priority of this to high? Dave.
Supplementary information... I was wrong. I confirmed this in a wrong way. This works the way it should. This is a feature request rather than a bug. Sorry. For the sake of interest, I was trying to C-Shift-Drag rather than C-M-Drag which works. Ooops. For the sake of the original reporter, a look at the source confirms that when either Control or Alt are pressed while dragging, they lock one or other of the axes. When both are pressed, the aspect ratio is (as expected) locked. When neither are pressed, the usual thing happens :) Sorry for unnecessarily changing the status. Will change this to a feature request, and change status accordingly... I still think this should go in 1.2, but for the moment I'm leaving the Target milestone empty. Dave.
Sorry, no new features in 1.2.
*** Bug 73471 has been marked as a duplicate of this bug. ***
Bumping a bunch of enhancement requests which will not be done by the feature freeze to Future. Dave.
Putting on the 2.2 milestone since the tracking bug is targetted for 2.2 also.
There is actually a bug here. Try pressing Ctrl+Alt to fix the Scale tool aspect ratio, and then just moving the mouse back and forth a few times, from an arbitrary starting point. You will see the object steadily grow as you do it. When Ctrl alone is pressed, this does not happen. (Seen in Gimp 2.1.0.)
2004-06-18 Bill Skaggs <weskaggs@primate.ucdavis.edu> * app/tools/gimpscaletool.c: changed algorithm for scaling when aspect ratio is constrained, to fix strange behavior described in bug # 68106.
2004-06-19 Bill Skaggs <weskaggs@primate.ucdavis.edu> * app/tools/gimpscaletool.c: fixed my fix for bug # 68106, which worked incorrectly for two of the control points.
To finish with this bug report, I propose to change the scale tool options so that instead of checkbuttons for "Keep Height" and "Keep Width", there is a radiobutton with the options "Keep Height", "Keep Width", and "Keep Aspect". If there are no objections, I will go ahead and do this. (I am aware that the way the constraints are implemented makes it nontrivial.)
Sounds like a reasonable change. What is your plan about the key binding for the new option?
I don't see any reason to change it from Ctrl-Alt, which gives "keep aspect" behavior already. The key bindings here are fine, only the Tool Options presentation is problematic. With the current interface, the way to get a fixed aspect ratio is to check both "keep height" and "keep width" at the same time. This is nonintuitive, even though it is explained in the tooltip for the checkbuttons.
Please go for it then.
2004-06-21 Bill Skaggs <weskaggs@primate.ucdavis.edu> * app/tools/gimptransformoptions.c: use radio buttons for constraint options. Makes all options visible, should resolve bug #68106.