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 118775 - Pre-set aspect ratio in cropping tool
Pre-set aspect ratio in cropping tool
Status: RESOLVED DUPLICATE of bug 61094
Product: GIMP
Classification: Other
Component: Tools
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2003-07-31 14:25 UTC by Bertie Coopersmith
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bertie Coopersmith 2003-07-31 14:25:23 UTC
I would like to be able to pre-set an aspect ratio and then, as one
dragged the mouse in the guestimated direction of the diagonal of the
cropping rectangle the mouse pointer would move along the actual
diagonal so that the rectangle maintains a constant aspect ratio while
being dragged. It would not be necessary to do this with continuous
great accuracy so long as at the end of the drag any necessary small
correction is made and the rectangle is drawn accurately to the specified
aspect ratio and its dimensions displayed in the dialog in the usual way. 

How would the user set it? perhaps a new item, 'Aspect %', in the menu
under the 'px' button. - So minimal change to the present dialog. The
on-line help would explain that this meant width/height.

Why do I want it? I use this to crop out thumbnail images, which in my case
always have fixed dimensions. The resizing that follows the initial
cropping is easily automated (mogrify) but to get the aspect ratio right at
present means  1)Drag out estimated rectangle, 2) Enter its dimensions into
my calculator and divide, 3)Decide whether to increase or decrease width or
height and re-iterate.

Gimp developer David Neary has suggested a work-around which is to first
use the rectangular selection tool which does have the ability to pre-set
aspect ratio and then to use the cropping tool in the same image window and
click the 'from selection' button. However, apart from being a more
roundabout procedure, this has the disadvantage that the selection tool
lacks the cropping tool's ability to make incremental adjustments by
dragging the corners of the selection rectangle.
Comment 1 Tor Lillqvist 2003-09-18 11:26:32 UTC
I do think that using the "crop from selection" is good enough (one 
more feature I hadn't noticed in GIMP ;-). But the "Fixed Aspect 
Ratio" alternative in the rectangular selection tool could be 
enhanced to "Fixed set of aspect ratios". (The set would be user 
configurable, of course, but a set of common aspect ratios could be 
pre-provided.)

Very useful if you for instance have several sizes of prints with 
different aspect ratios available from your on-line photo service. 
For instance I would most likely want to restrict the aspect ratios 
to 15:10, 13:10, 10:13 and 10:15 (print sizes (in cm) available here).
Comment 2 Sven Neumann 2003-09-18 11:53:51 UTC
We could use the image templates for this instead of creating yet
another set of configurable presets.
Comment 3 Tor Lillqvist 2003-09-18 13:47:22 UTC
Hmm, image templates? Argh, I really should catch up on all the nifty 
new features ;-)
Comment 4 Bertie Coopersmith 2003-09-25 21:04:41 UTC
I have looked at gimp 1.3 in connection with this. "Crop
from selection" has been made easier. However, this
fails to resolve the issue which I described in opening
#118775. In summary, being able to adjust the rectangle in
both position and size with preview at every such adjustment
before activating the crop. This is what I do now with
a workaround for aspect ratio in the nature of a pocket
calculator. It will remain my method of working unless this
enhancement is implemented along the lines I have suggested.
 On scanning this database I see that my request is not
 original. Others have asked for the identical thing.
 looking at recent comments on #118775 I now think my use
 of the word 'Pre-set' in the short description may have
 been misleading. 'Setable' would have been better.
Comment 5 Sven Neumann 2004-01-22 10:18:46 UTC
Is this a duplicate of #61094? This was suggested to me via email and
I don't have the time to check this out at the very moment.
Comment 6 Bertie Coopersmith 2004-01-22 11:25:41 UTC
I think this is in essence the same as 61904.  I also think the
phrase "Constrain ratio" is better than my own "Preset ratio" since
the latter has implications of extending the list of configurable
preferences which some developers have deplored, and I would agree
with them. Its not what 118775 was about. I think it would
be good enough if the dialog remembered the last-entered ratio, and I
suspect that this would be its behaviour without special coding effort. 
Comment 7 Sven Neumann 2004-01-22 15:25:12 UTC

*** This bug has been marked as a duplicate of 61094 ***
Comment 8 Bertie Coopersmith 2004-01-22 18:08:34 UTC
On second thoughts, since 61094 leaves the UI not specified in any
detail whereas 118775 says to use the crop tool with just the change
from absolute to ratio in the delaration of the crop parameters, I
would suggest that 61094 be considered a duplicate of 118775 rather
than vice versa. However, I shall leave the decision to revert status to
the developers.