Bug 108902

Summary: Golden ratio aspect crop
Product: [Applications] digikam Reporter: Mark A. Taff <kde>
Component: Plugin-Editor-CropAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 0.7.3   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In: 7.5.0

Description Mark A. Taff 2005-07-11 06:58:51 UTC
Version:           0.7.3-beta2 (using KDE 3.4.1 Level "a" , SUSE 9.3 UNSUPPORTED)
Compiler:          gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
OS:                Linux (i686) release 2.6.11.4-21.7-smp

It is currently not very easy to crop an image to the golden ratio (1:1.618033...) using the aspect ratio crop feature.  You either have to approximate it as 10:16, which is IMHO not a close enough approximation, or you have to do the math by hand with a given base dimension.

Short of using double/float, 1,000:1,618 or 10,000:16,180 should be a close enough approximation.

Thanks.

Mark
Comment 1 caulier.gilles 2005-07-11 07:20:43 UTC
I had already inlude Golden ratio to digikam 0.8.0. Take a look here :

http://digikam3rdparty.free.fr/aspectratiocroptoolresizable.png

Gilles Caulier