[Digikam-devel] [Bug 128293] New: aspect ratio crop does not respect aspect ratio

peridot.faceted at gmail.com peridot.faceted at gmail.com
Tue May 30 03:15:59 BST 2006


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=128293         
           Summary: aspect ratio crop does not respect aspect ratio
           Product: digikam
           Version: unspecified
          Platform: Debian testing
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: Image Editor
        AssignedTo: digikam-devel kde org
        ReportedBy: peridot.faceted gmail com


Version:           0.8.2-rc1 (using KDE KDE 3.5.2)
Installed from:    Debian testing/unstable Packages
OS:                Linux

When I attempt to use Aspect Ratio Crop to crop my pictures to square, they are often only approximately square, off by a few pixels. For example, when I open a 1944 by 2592 image, and select "1:1" aspect ratio, then press "Max Aspect", I obtain a crop that is 1944 by 1942. (Also, the combo boxes display incorrect values initially.)

More generally, I often cannot select exact pixel sizes; for example, on 1:1 aspect ratio, clicking the "down by one" button usually reduces the size by many. In the example above, clicking down-by-one on the width (or the height) yields a crop that is 1938 by 1937. Typing "1944" into the height appears to work, until focus leaves the group of combo boxes.

I think the problem is that the slider uses increments that are larger than one pixel; also, for non 1-to-1 aspect ratios, the user may want to specify an exact width or an exact height, so the algorithm by which the sizes are recalculated needs to be more sophisticated. Also more accurate; a carefully-thought-out integer algorithm is most appropriate, I think.



More information about the Digikam-devel mailing list