Bug 100880

Summary: Auto-resize image to keep a rectangular photo
Product: [Applications] digikam Reporter: Marc Cramdal <marc.cramdal>
Component: Plugin-Editor-RotationAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 7.6.0
Sentry Crash Report:

Description Marc Cramdal 2005-03-05 12:44:53 UTC
Version:            (using KDE KDE 3.4.0)
Installed from:    Gentoo Packages

When I free-resize an image, I would like it to be automatically cropped to the correct size in order to avoid the black triangles at top and bottom.
Comment 1 caulier.gilles 2005-07-19 09:32:34 UTC
You want an auto-crop like this ?

http://digikam3rdparty.free.fr/freerotation-autocrop-example.png

Link for a photoshop tool :

http://www.melor.com/projects/autocrop_info.htm

Gilles Caulier
Comment 2 caulier.gilles 2005-07-21 09:56:17 UTC
SVN commit 437192 by cgilles:

digiKam Free Rotation tool :

- Add auto-cropped option to the correct size in order to avoid the black triangles around target image. This code is based on Renchi implementation. This is not optimized with high angles but rotation correction in photograph use generally a small angle. I think this way is enough.
- Add dialog separator.
- Fix cursor rules

CCMAIL: digikam-devel@kde.org
CCBUG: 100880


 M  +37 -18    freerotation.cpp  
 M  +6 -2      freerotation.h  
 M  +37 -9     imageeffect_freerotation.cpp  
 M  +1 -0      imageeffect_freerotation.h  
Comment 3 caulier.gilles 2005-07-21 10:10:19 UTC
Current implementation available to 0.8.0 is enough and fix this bug

Gilles Caulier
Comment 4 caulier.gilles 2005-07-22 08:02:37 UTC
SVN commit 437499 by cgilles:

digiKam Free Rotation tool : 

There is 2 options to auto-crop rotated image :

- 'Widest Area' from Renchi optimized for small rotation angle.
- 'Largest Area' from Gerhard optimized for hight rotation angle.

Gerhard : we need to polish 'Largest Area' algorithm to work properly with angle>90° and angle<-90°.

CCMAIL: digikam-devel@kde.org, gerhard@kulzer.net
CCBUG: 100880


 M  +42 -19    freerotation.cpp  
 M  +14 -4     freerotation.h  
 M  +19 -13    imageeffect_freerotation.cpp  
 M  +3 -1      imageeffect_freerotation.h