Bug 429673 - Create export filename-list for fuzzy search result
Summary: Create export filename-list for fuzzy search result
Status: REPORTED
Alias: None
Product: digikam
Classification: Applications
Component: Searches-Similarity (show other bugs)
Version: 7.1.0
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
: 474447 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-11-26 07:56 UTC by wertstoffe
Modified: 2023-09-13 11:06 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wertstoffe 2020-11-26 07:56:43 UTC
SUMMARY
When i run a fuzzy search to find duplicate images, i get the best results with digikam compared to other tools. So digikam is my choice. 

But the problem is, i can not do anything with the results. I know, create a button, which saves the largest image could be easy (reverse call: delete all duplicates except the largest one). 
I cannot use the referenzce-image, because all my relevant images are in the same directory (sorted by year and month). 

I want a export-button for the fuzzy-search result. It should give a json file (which is easy to use with jq for shell-scripts) like this
{ reference-image.jpg: 
     path: "/path/to/reference-image.jpg";
     size: "5,4GB";
     pixel: "3900000";
     resolution: "2600x4500";
     duplicates: [
          { duplicate-1.jpg:
               path: "/path/to/duplicate-1.jpg";
               size: ...
           };
           { duplicate-1.jpg:
               ....
           };
     ];
}

The exported fields should be configurable like the columns in tableview from the search.

So i can check the pictures in digikam, if the result is ok, export the filenames and run my own scipt which can preserve or delete several files (the biggest one, the one with name in nameconvention, if some duplicates are the same except the filename... and so on.)

With an export like this, your are not in the situation to decide for your users, and implement a bunch of algorithms to delete duplicates which do not fit the usecases for all users... 

SOFTWARE/OS VERSIONS
Fedora 32, Gnome Desktop
Comment 1 Maik Qualmann 2020-11-26 09:32:16 UTC
The current digiKam-7.2.0-Beta2 contains a function to delete duplicate images. You had to try out whether it helps you and whether the correct reference image was determined. The script you want is very special and would probably only be used by very few users.

Maik
Comment 2 Maik Qualmann 2023-09-13 07:02:07 UTC
*** Bug 474447 has been marked as a duplicate of this bug. ***
Comment 3 Ilias Tsolis 2023-09-13 10:51:02 UTC
Why not provide the similarity / duplicate check as a standalone linux program of digikam suite?
Comment 4 caulier.gilles 2023-09-13 11:06:46 UTC
Because it's out of scope of the project and feature included in-deep in the program...