CreateDate

Started by hup, March 31, 2023, 04:55:06 PM

Previous topic - Next topic

hup

I have download about 5000 photos from Icloud using the original format of the file. This prevents the change of the CreateDate of the files, which happens, when you use the so clalled most compatible download option.

I would like to ad the CreateDate in the format YYYYMMDD as a prefix to the existing filename.

eg.:
filename: IMG_3586.JPG
createdate 2019:01:19 09:14:18

the result should - if possible - be:

20190119-IMG:3586.JPG

Thanks in advance for any hint.

Hans Uwe

Phil Harvey

Hi Hans,

exiftool "-testname<createdate" -d "%Y%m%d-%f.%e" DIR

(I'm assuming you don't want to change the underline in the file name to a colon.)

If this does what you want, change "testname" to "filename" in the command to actually rename the files.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

Quote from: hup on March 31, 2023, 04:55:06 PMThis prevents the change of the CreateDate of the files, which happens, when you use the so clalled most compatible download option.

This makes me think you mean the file system create date, which is FileCreateDate.  This different from the CreateDate Phil mentioned, as that is actually embedded in the file and part of the EXIF group.

Use this command to look at all the date/time tags in the file and use the one most appropriate in Phil's command
exiftool -time:all -G -a -s /path/to/files/
"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