Hi,
I have a bunch of scanned jpg files. EXIF info is something like this:
File Modification Date/Time : 2021:05:17 19:22:41+02:00
File Access Date/Time : 2021:05:18 19:03:00+02:00
File Creation Date/Time : 2021:05:17 19:22:41+02:00
File Permissions : -rw-rw-rw-
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
JFIF Version : 1.01
Resolution Unit : inches
X Resolution : 300
Y Resolution : 300
Exif Byte Order : Little-endian (Intel, II)
Make : HP
Camera Model Name : LaserJet MFP M129-M134
Page Name : Reflective
Software : VueScan 9 x64 (9.7.27)
Create Date : 2021:05:17 19:22:41
I wish to chage Create Date to year only. For example, this particular photo is taken in 1975. I don't care for month, day or hour. Is it possible and how, please?
Im not think $Exif:CreateDate will grant lonely years, but you could use zeroes for everything else like...
-Exif:CreateDate="1975:00:00 00:00:00"
Thank you.
I received error
Warning: Month '00' out of range 1..12 in ExifIFD:CreateDate (PrintConvInv)
Nothing to do.
I'll just use 01 for month and day
See FAQ #5 (https://exiftool.org/faq.html#Q5) for details on setting date/time tags.
Quote from: abunavas on May 18, 2021, 03:25:14 PM
I received the error
Warning: Month '00' out of range 1..12 in ExifIFD:CreateDate (PrintConvInv)
It must be better filtering from new updates, because v12.11 even grants
-Exif:CreateDate="0000:00:00 00:00:00"
From Version 12.14 (https://exiftool.org/history.html#v12.14)
Patched to issue warning and avoid writing date/time values with a zero month or day number
As I faintly recall, the 00 caused issues with something else.
You can override this by using the -m (-ignoreMinorErrors) option (https://exiftool.org/exiftool_pod.html#m--ignoreMinorErrors) and set it to whatever you want, even the number of monkeys in the picture (https://exiftool.org/forum/index.php?topic=12512.msg67601#msg67601).
But the standard I've seen with images from stock image sites like GettyImages is to put the earliest date/time when it is not known. So if only the year is known, GI would put 1975:01:01 00:00:00
Of course when seeing this, I had to experiment with exiftool -n -Exif:CreateDate="xyz" file.jpg
Lol, and sure enough my date was xyz! But I do certainly agree, its always best to follow the standards.