gphoto2 icon indicating copy to clipboard operation
gphoto2 copied to clipboard

iOS metadata mess

Open terrancewong opened this issue 1 year ago • 1 comments

Describe the bug

iOS uses CreationDate as original date time, but gphoto2 reads other date.

Name the camera

% gphoto2 --auto-detect
Model                          Port                                            
----------------------------------------------------------
Apple iPhone 5 (PTP mode)      usb:001,017    

actually iPhone8 with iOS 16.0.3 (20A392)

libgphoto2 and gphoto2 version

gphoto2 2.5.28

Copyright (c) 2000-2021 Marcus Meissner and others

gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of gphoto2 under the terms of the GNU General Public
License. For more information about these matters, see the files named COPYING.

This version of gphoto2 is using the following software versions and options:
gphoto2         2.5.28         gcc, popt(m), exif, cdk, aa, jpeg, readline
libgphoto2      2.5.29         standard camlibs, gcc, no ltdl, EXIF
libgphoto2_port 0.12.0         iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi, gcc, no ltdl, EXIF, USB, serial without locking

To Reproduce

when getting file or all-files with --filename="%Y%m%d/%f.%C", iOS uses CreationDate as original date time of a photo/video, but gphoto2 uses other tag as date.

terrancewong avatar Oct 13 '22 16:10 terrancewong

We currently use the CaptureDate or ( if set ModificationDate ) from the PTP Object Info.

We do not look at MTP object properties currently for the date.

can you get the debuglog and extract 1 image objectinfo debugoutput ? (e.g. gphoto2 -L --debug --debug-logfile=list.log and check list.log for the ObjectInfo output)

msmeissn avatar Oct 13 '22 18:10 msmeissn