Bug 464475

Summary: It would be nice if auto crop also worked with black borders,and not just white borders.
Product: [Applications] digikam Reporter: jm7 <jm7>
Component: Plugin-Editor-CropAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: wishlist CC: caulier.gilles, metzpinguin, michael_miller
Priority: NOR    
Version First Reported In: 7.8.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description jm7@acm.org 2023-01-18 19:17:36 UTC
SUMMARY
I have a large number of slides that I am scanning, and because they are backlit when scanned, the over scan comes out a near black.  Autocrop refuses to work on these, and I have to do every one of them manually.
Comment 1 caulier.gilles 2023-01-19 08:05:59 UTC
You want mean that scanned image has a black frames around ? Like this one:

https://docs.digikam.org/en/_images/editor_autocrop.webp

... taken from the docmentation:

https://docs.digikam.org/en/image_editor/transform_tools.html#cropping-a-photograph

The autocrop algorithm is designed to crop black frames not white frames.

Gilles Caulier
Comment 2 Maik Qualmann 2023-01-19 11:31:50 UTC
Maybe provide a sample image. A test here with a image and a black frame works without any problems.

Maik
Comment 3 caulier.gilles 2025-04-11 23:43:44 UTC
Another wish for Auto-crop AI based tool, related to bug 499208