Bug 100880 - Auto-resize image to keep a rectangular photo
Summary: Auto-resize image to keep a rectangular photo
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Editor-Rotation (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-05 12:44 UTC by Marc Cramdal
Modified: 2022-01-17 22:15 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 7.6.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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