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 406542 - Aspect ratio of the crop tool should be a select box with common ratios and current ratio
Aspect ratio of the crop tool should be a select box with common ratios and c...
Status: RESOLVED DUPLICATE of bug 156858
Product: GIMP
Classification: Other
Component: Tools
2.3.x
Other All
: Normal minor
: ---
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2007-02-10 23:52 UTC by Zas
Modified: 2008-01-15 14:10 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Zas 2007-02-10 23:52:45 UTC
In the Crop tool, Aspect text field default to 1:1 in gimp 2.3.14.
It would be great to have a combo box with current layer ratio, and some other common ones.
If current layer is 4000x2500 pixels, it should show:
> 4000:2500      
> 1:1 
> 1:2 
> 2:3   
> 4:3
> 16:9
> ....

first item should be editable as 1:1 currently is.
other items should be common ones + last used.





Other information:
It may be useful to have reduced forms of ratio, like 4:3 for 640:480.

Euclidian algorithm is useful to rewrite ratios, see http://en.wikipedia.org/wiki/Euclidean_algorithm .

Here is a python example:

>>> def gcd(a,b):
...     while b!=0:
...             t=b
...             b=a % b
...             a=t
...     return a
... 
>>> def pfrac(a,b):
...     d=gcd(a,b)
...     print a/d,b/d
...
>>> pfrac(80,45)
16 9
>>> pfrac(640,400)
8 5
>>> pfrac(640,480)
4 3
>>> pfrac(3008,2008)
376 251
Comment 1 Sven Neumann 2007-02-11 12:10:06 UTC
The rectangle and crop tools in 2.3 are unfinished. We have however discussed the new tools and written a spec for them. Bugzilla is however not the right place to discuss such things. If you want to contribute, please read the spec, join the gimp-developer mailing-list and discuss it there.
Comment 2 Michael Schumacher 2007-02-11 14:22:48 UTC
This is a duplicate of bug #156858.
Comment 3 Michael Schumacher 2007-02-11 14:23:05 UTC

*** This bug has been marked as a duplicate of 156858 ***