HEIX import issue
Mandatory: Shotwell version the issue was seen with
Shotwell 0.32.3
When attaching an image, compress the image using Zip/gzip... to prevent gitlab from
Potentially stripping the meta-data
…
The expected behaviour
I expect to see all iphone photos imported in Shotwell from Iphone and for this bug from the copied folder of the DCIM of my iPhone (iOS 16.6.1)
What was actually happening
Importing folder images from /home/xxx/Pictures/DCIM_iPhone_xxx/108APPLE
The process finished with 157 warning about all 157 HEIC images from the folder:
" Import Results Report (Shotwell 0.32.3 @ 2023-11-18T14:09:32.691307Z)
Attempted to import 176 files. Of these, 0 files were successfully imported."
The trace/debug file shows these kind of errors
L 5014 2023-11-18 15:00:35 [DBG] BatchImport.vala:2006: Importing /home/xxx/Pictures/DCIM_iPhone_xxx/108APPLE/IMG_8163.HEIC
L 5014 2023-11-18 15:00:35 [WRN] Photo.vala:1199: Unable to interrogate photo file /home/dadde/Pictures/DCIM_iPhone_Dadde/108APPLE/IMG_8134.HEIC: Unrecognized image file format
L 5014 2023-11-18 15:00:35 [DBG] BatchImport.vala:2006: Importing /home/xxx/Pictures/DCIM_iPhone_xxx/108APPLE/IMG_8030.HEIC
L 5014 2023-11-18 15:00:35 [WRN] Photo.vala:1199: Unable to interrogate photo file /home/dadde/Pictures/DCIM_iPhone_Dadde/108APPLE/IMG_8026.HEIC: Unrecognized image file format
L 5014 2023-11-18 15:00:35 [DBG] BatchImport.vala:2006: Importing /home/xxx/Pictures/DCIM_iPhone_xxx/108APPLE/IMG_8067.HEIC
L 5014 2023-11-18 15:00:35 [WRN] Photo.vala:1199: Unable to interrogate photo file /home/dadde/Pictures/DCIM_iPhone_Dadde/108APPLE/IMG_8067.HEIC: Unrecognized image file format
L 5014 2023-11-18 15:00:35 [DBG] BatchImport.vala:2006: Importing /home/xxx/Pictures/DCIM_iPhone_xxx/108APPLE/IMG_8122.HEIC
L 5014 2023-11-18 15:00:35 [WRN] Photo.vala:1199: Unable to interrogate photo file /home/dadde/Pictures/DCIM_iPhone_Dadde/108APPLE/IMG_8030.HEIC: Unrecognized image file format
and later in the file...
L 5014 2023-11-18 15:00:35 [DBG] VideoReader.vala:72: Skipping IMG_8026.HEIC, unsupported mime type image/heif
L 5014 2023-11-18 15:00:35 [DBG] VideoReader.vala:72: Skipping IMG_8067.HEIC, unsupported mime type image/heif
L 5014 2023-11-18 15:00:35 [DBG] VideoReader.vala:72: Skipping IMG_8030.HEIC, unsupported mime type image/heif
L 5014 2023-11-18 15:00:35 [DBG] VideoReader.vala:72: Skipping IMG_8163.HEIC, unsupported mime type image/heif
L 5014 2023-11-18 15:00:35 [DBG] VideoReader.vala:72: Skipping IMG_8122.HEIC, unsupported mime type image/heif
"
All the HEIC files in this folder /home/xxx/Pictures/DCIM_iPhone_xxx/108APPLE can be opened as photos in Gthumb application.
Steps to reproduce the issue
Copy iPhone files from DCIM location to Linux folder : /home/xxx/Pictures/DCIM_iPhone_xxx/ Run from a terminal SHOTWELL_LOG=1 SHOTWELL_LOG_FILE=:console: shotwell Select "File/Import from Folder..." Choose /home/dadde/Pictures/DCIM_iPhone_Dadde/108APPLE as folder anc click OK
The result of the import indicates the error and HEIX file are not imported at all.