Bug 305655

Summary: Detect which pictures are actually new in the camera
Product: [Applications] digikam Reporter: Tomáš Pártl <tomaspartl>
Component: Import-Gphoto2Assignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: wishlist CC: ajg02, caulier.gilles
Priority: NOR    
Version: 2.5.0   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 8.2.0
Sentry Crash Report:

Description Tomáš Pártl 2012-08-23 10:23:10 UTC
This is the problem:
I installed digiKam, showed it where I keep my pictures and it recognized the subdirectories as albums (nice). Then I connected my camera (actually a mobile phone) to the computer and wanted to import new photos from it. BUT DigiKam insisted that all photos in the camera are new, even though a lot of them were in the albums already.
I tried to find a way to make digiKam compare the photos in the camera to the ones in the albums (at least by file name) and mark as new only those that weren't in the albums already, but I found no way to do it and ended up writing a shell script to copy the photos in the computer instead.

So: It would be great if digiKam could check if the photos in a connected camera are actually in the albums already and only mark as new those that aren't. It could compare the photos using file names only or it could consider also files size and maybe even a file checksum.

Thank you for considering this request!
Comment 1 caulier.gilles 2012-08-23 10:32:55 UTC
This is already implemented and work fine with USB Mass Storage camera.

With GPhoto2 device, a problem have been reported here...

Gilles Caulier
Comment 2 caulier.gilles 2012-08-23 10:36:04 UTC
See these entries :

#285683
#281758

Gilles Caulier
Comment 3 Tomáš Pártl 2012-09-03 11:22:03 UTC
Hello!
Thank you for the fast reply!
I compiled digiKam 2.8 and the problem persists: all pictures on the phone camera
are always marked as new.

I read the two bug entries you refer to but to no avail.
I am using a Samsung Android phone connected as a mass storage device.
I can import from it either via Import->Cameras or via Import->USB Storage Devices
but the result is always the same: all images erroneously marked as new.

Any suggestions, please?

Thank you!
Comment 4 Andrew Goodbody 2012-09-08 15:15:26 UTC
I think there is a misunderstanding here. Digikam will record which photos it has already downloaded from a camera. Digikam will not recognise photos as already downloaded if that was done not using digikam, as in your case. So digikam is working as expected here but not as you would like it to. So if you allow digikam to download all photos, you can delete the duplicates that were already downloaded. From then on digikam will recognise your new photos.
Comment 5 Tomáš Pártl 2012-09-10 06:00:44 UTC
Yes, you nailed it down. Still, it would be useful to me if digikam could recognize even photos downloaded into its album directory in a different way than using digikam as not new.
So this is not a bug report, but a feature request :)