[Originally posted by katanna on 2008-03-31 14:58:44-07]
Hey all,
I was playing with ExifTool, and was able to do simple command line things (IE: I could copy and paste from the examples in the help document), but I don't know how to do what I want to do.
I want to copy a photos EXIF Create Date and paste it to the files created date/modified date.
So, I have a photo with the following data (taken from ExifTool):
Date/Time Original: 2008:03:22 17:31:02
Create Date: 2008:03:22 17:31:02
File Modification Date/Time: 2008:03:23 19:22:55
Modify Date: 2008:03:23 19:22:54
I want to set the files date created and date modified (in Finder) IE: File Modification Date_Time" and Modify Date (in ExifTool) to 2008:03:22 17:31:02 (the Create Date).
Oh, and I want to do this to several folders worth of photos (I don't mind doing each folder separately, but each folder has several hundred photos in it, so I will need to do folder batches).
Any help is GREATLY appreciated!
Matthew
[Originally posted by katanna on 2008-03-31 15:02:22-07]
... I don't know why this site hates me so much, first it won't let me use any punctuation, then it deletes my line breaks... lets try this again...
Hey all,
I was playing with ExifTool, and was able to do simple command line things (IE: I could copy and paste from the examples in the help document), but I don't know how to do what I want to do.
I want to copy a photos EXIF Create Date and paste it to the files created date/modified date.
So, I have a photo with the following data (taken from ExifTool):
Date/Time Original: 2008:03:22 17:31:02
Create Date: 2008:03:22 17:31:02
File Modification Date/Time: 2008:03:23 19:22:55
Modify Date: 2008:03:23 19:22:54
I want to set the files date created and date modified (in Finder) IE: File Modification Date/Time" and Modify Date (in ExifTool) to 2008:03:22 17:31:02 (the Create Date). Oh, and I want to do this to several folders worth of photos (I don't mind doing each folder separately, but each folder has several hundred photos in it, so I will need to do folder batches).
Any help is GREATLY appreciated!
Matthew
[Originally posted by exiftool on 2008-03-31 15:12:06-07]Hi Matthew,
ExifTool can write the filesystem modification date (FileModifyDate),
but not the creation date. I hope this is ok. The following
example from the COPYING EXAMPLES documentation does
almost exactly what you want:
exiftool '-DateTimeOriginal>FileModifyDate' dir
Use the original date from the meta information to set the same
file's filesystem modification date for all images in a directory.
(Note that "-TagsFromFile @" is assumed if no other -TagsFromFile
is specified when redirecting information as in this example.)
Just use CreateDate instead of DateTimeOriginal. Also, add a
-roption to recurse into subdirectories inside of the specified "
dir".
- Phil
[Originally posted by katanna on 2008-03-31 17:26:09-07]
Thanks a bunch!
Even though it gave me a bunch of warnings, it worked. I was also able to fix one of the folders whose camera had the wrong date... it was off by 28067 hours (3 years). Thanks to ExifTool, it got fixed!
Matthew