The facetime photo taken by iPhone does not produce the original shooting time of EXIF, but the modification date is the original shooting time. How can I write (copy) this modification date to the original shooting time of EXIF?
D:\Users\renxa\Desktop\geo\test>exiftool -s 1.heic
ExifToolVersion : 12.98
FileName : 1.heic
Directory : .
FileSize : 305 kB
FileModifyDate : 2024:07:22 01:44:57+08:00
FileAccessDate : 2024:10:17 19:20:08+08:00
FileCreateDate : 2024:10:17 19:03:31+08:00
FilePermissions : -rw-rw-rw-
FileType : HEIC
FileTypeExtension : heic
MIMEType : image/heic
MajorBrand : High Efficiency Image Format HEVC still image (.HEIC)
MinorVersion : 0.0.0
CompatibleBrands : mif1, miaf, MiHB, heic
HandlerType : Picture
PrimaryItemReference : 9
MetaImageSize : 1920x884
ExifByteOrder : Big-endian (Motorola, MM)
Make : Apple
Model : iPhone 14 Pro Max
Orientation : Rotate 90 CW
XResolution : 72
YResolution : 72
ResolutionUnit : inches
ContentIdentifier : 96C6B1CD-5C0E-4873-B1D0-82FAB5C2A7F3
UserComment : FaceTime Photo
LensMake : Apple
LensModel : iPhone 14 Pro Max front FaceTime camera
ColorProfiles : nclx
ColorPrimaries : Unspecified
TransferCharacteristics : Unspecified
MatrixCoefficients : BT.601
VideoFullRangeFlag : 1
ImageWidth : 1920
ImageHeight : 884
ImageSpatialExtent : 1920x884
Rotation : Rotate 90 CW
ImagePixelDepth : 8 8 8
HEVCConfigurationVersion : 1
GeneralProfileSpace : Conforming
GeneralTierFlag : Main Tier
GeneralProfileIDC : Main Still Picture
GenProfileCompatibilityFlags : Main Still Picture, Main 10, Main
ConstraintIndicatorFlags : 176 0 0 0 0 0
GeneralLevelIDC : 90 (level 3.0)
MinSpatialSegmentationIDC : 0
ParallelismType : 0
ChromaFormat : 4:2:0
BitDepthLuma : 8
BitDepthChroma : 8
AverageFrameRate : 0
ConstantFrameRate : Unknown
NumTemporalLayers : 1
TemporalIDNested : No
MediaDataSize : 304164
MediaDataOffset : 896
ImageSize : 1920x884
Megapixels : 1.7
Try this:
exiftool -P -overwrite_original "-AllDates<FileModifyDate" image.heic
FWIW I wonder why in macOS I explicitly have to query FileCreateDate but for you it is readily displayed? Maybe other OSs behave differently in this respect?
- Matti
Quote from: wywh on October 17, 2024, 09:21:49 AMFWIW I wonder why in macOS I explicitly have to query FileCreateDate but for you it is readily displayed?
FileCreateDate is automatically returned in Windows but not for MacOS because on MacOS an external utility must be executed to obtain this information.
- Phil