When uploading to an ftp site, the original file create date seems to be lost, and I get the upload date instead. However, the Exif data in the file is correct. Is there a tool to batch change the created date from the Exif date?
Change file created date from JPEG EXIF metadata
exiffile-metadataimage manipulationimages
Best Answer
The EXIF handling tool
exiv2
has a builtin option for this:exiv2 -T rename image.jpg
sets the time of last file modification,
mtime
, to the date stored in the EXIF metadata.You asked for using the create time - but that is not used in Unix-like systems - and there are good reasons for that: https://unix.stackexchange.com/questions/27297/why-doesnt-nix-keep-track-of-file-creation-time
I'm pretty sure the time you call create time is actually
mtime
- no problem there.From
man exiv2
:See option
-t
to do the opposite.