<div dir="ltr">Hi folks,<div><br></div><div><div>I was writing a small script that moves all duplicate images of my <span class="gmail-il">Digikam</span> database to another folder:<br></div><div><a href="https://github.com/ninok/digikam-utils/blob/main/move_duplicates.py" target="_blank">https://github.com/ninok/<span class="gmail-il">digikam</span>-utils/blob/main/move_duplicates.py</a></div><div><br></div><div>To double check that the script did the right thing, I was trying to re-import the duplicates.</div><div>I was expecting that the import will mark none of the images as new, but instead all of the images are marked as new.</div><div><br></div><div>I wrote another script that checks if there is a copy of each duplicate and it works as expected:</div><div><a href="https://github.com/ninok/digikam-utils/blob/main/safe_remove_duplicates.py" target="_blank">https://github.com/ninok/<span class="gmail-il">digikam</span>-utils/blob/main/safe_remove_duplicates.py</a><br></div><div><br></div><div>Am I doing sth. wrong? How can I prevent import to import images that are already in the database?</div><div><br></div><div>Best regards,</div><div>Nino</div></div></div>