Hi all,
I'm in the process of scanning a whole lot of old family photos and need some help with setting the correct date from the creation date of the file.
Before I thought of using the EXIF data I went through a few hundred files and set the creation date of the file instead
Is it possible to copy the file creation date over to EXIF info – so it looks like the photo was taken at that time.
(I've seen a lot of opposites, that people want the file creation date to reflect the EXIF date, but I'm having a hard time reversing this and getting it to work)
Thanks!
Example EXIF info from one of the files – as you can see the file creation date (that is set to 01/01/1980) is not reflected in the EXIF info at all.
ExifTool Version Number : 11.11
File Name : Filename.tif
Directory : .
File Size : 19 MB
File Modification Date/Time : 2018:10:23 13:32:15+02:00
File Access Date/Time : 2018:10:23 13:32:18+02:00
File Inode Change Date/Time : 2018:10:23 13:32:15+02:00
File Permissions : rw-r--r--
File Type : TIFF
File Type Extension : tif
MIME Type : image/tiff
Exif Byte Order : Little-endian (Intel, II)
Image Width : 2134
Image Height : 3140
Bits Per Sample : 8 8 8
Compression : Uncompressed
Photometric Interpretation : RGB
Fill Order : Normal
Image Description : 1980–1981
Strip Offsets : 8
Orientation : Horizontal (normal)
Samples Per Pixel : 3
Rows Per Strip : 3140
Strip Byte Counts : 20102280
X Resolution : 600
Y Resolution : 600
Planar Configuration : Chunky
Page Name : Reflective
Resolution Unit : inches
Page Number : 0 1
White Point : 0.3127000032 0.328999996
Primary Chromaticities : 0.6399999856 0.330000013 0.3000000118 0.6000000237 0.1500000058 0.05999999844
Profile CMM Type : Linotronic
Profile Version : 2.1.0
Profile Class : Display Device Profile
Color Space Data : RGB
Profile Connection Space : XYZ
Profile Date Time : 1998:02:09 06:49:00
Profile File Signature : acsp
Primary Platform : Microsoft Corporation
CMM Flags : Not Embedded, Independent
Device Manufacturer : Hewlett-Packard
Device Model : sRGB
Device Attributes : Reflective, Glossy, Positive, Color
Rendering Intent : Perceptual
Connection Space Illuminant : 0.9642 1 0.82491
Profile Creator : Hewlett-Packard
Profile ID : 0
Profile Copyright : Copyright (c) 1998 Hewlett-Packard Company
Profile Description : sRGB IEC61966-2.1
Media White Point : 0.95045 1 1.08905
Media Black Point : 0 0 0
Red Matrix Column : 0.43607 0.22249 0.01392
Green Matrix Column : 0.38515 0.71687 0.09708
Blue Matrix Column : 0.14307 0.06061 0.7141
Device Mfg Desc : IEC http://www.iec.ch
Device Model Desc : IEC 61966-2.1 Default RGB colour space - sRGB
Viewing Cond Desc : Reference Viewing Condition in IEC61966-2.1
Viewing Cond Illuminant : 19.6445 20.3718 16.8089
Viewing Cond Surround : 3.92889 4.07439 3.36179
Viewing Cond Illuminant Type : D50
Luminance : 76.03647 80 87.12462
Measurement Observer : CIE 1931
Measurement Backing : 0 0 0
Measurement Geometry : Unknown
Measurement Flare : 0.999%
Measurement Illuminant : D65
Technology : Cathode Ray Tube Display
Red Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Green Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Blue Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Image Size : 2134x3140
Megapixels : 6.7
This command should do it:
exiftool "-alldates<filecreatedate" DIR
This will set the EXIF DateTimeOriginal, CreateDate and ModifyDate from the file creation date/time.
- Phil
Amazingly fast and correct answer. Thanks a lot! Much appreciated!