Change Create date to scanned files using only year?

Started by abunavas, May 18, 2021, 01:20:53 PM

Previous topic - Next topic

abunavas

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?

Luuk2005

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"
Windows8.1-64bit,  exiftool-v12.92(standalone),  sed-v4.0.7

abunavas

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


StarGeek

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Luuk2005

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"
Windows8.1-64bit,  exiftool-v12.92(standalone),  sed-v4.0.7

StarGeek

From Version 12.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 and set it to whatever you want, even the number of monkeys in the picture.

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
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Luuk2005

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.
Windows8.1-64bit,  exiftool-v12.92(standalone),  sed-v4.0.7