Shotwell uses conflicting "previously imported" file recognition for importing files
Mandatory: Shotwell version the issue was seen with
0.30.10 – “Celle”
The expected behaviour
When trying to import pictures from an iOS device (specifically an iPhone running iOS 13.x in my case), photos previously imported by Shotwell should not be visible in the pane visible when the device is selected.
What was actually happening
Pictures that have been imported are appearing in the pictures section, but when attempting to import the files Shotwell reports that the files are already imported. I.e., there is one rule set when previewing pictures to identify duplicates, and a different rule set when actually doing the import to identify duplicates.
This specifically appears to happen with photos that have been edited on the iOS device (cropped, color corrected, etc.), as the iOS device uses similar naming schemes for the source image, and the modified image. Shotwell imports one of these two images, then refuses to import the second image.
Steps to reproduce the issue
- Take a photo on an iOS device.
- Edit the file in some way with Apple's built in photo editing tools. Crop for example.
- Connect iOS device to computer, and browse to the device in Shotwell's "Cameras" section.
- Click "Import All"
- Restart Shotwell
- Re-navigate to the device in the "Cameras" section
- Ensure "Hide photos already imported" is checked. Previously imported pictures will remain visible.
- Click "Import All"
- No photos will be imported, and Shotwell will report that all photos are duplicates.
The import log for an example import looks like the following.
Import Results Report (Shotwell 0.30.10 @ 2020-07-26T19:51:08.291240Z)
Attempted to import 2 files. Of these, 0 files were successfully imported.
Duplicate Photos/Videos Not Imported:
/home/luke/Pictures/Shotwell/2020/07/IMG_E3801_1.JPG duplicates existing media item
/home/luke/Pictures/Shotwell/2020/07/IMG_E3801.JPG
/home/luke/Pictures/Shotwell/2020/07/IMG_3801_1.PNG duplicates existing media item
/home/luke/Pictures/Shotwell/2020/07/IMG_3801.PNG