ExifTool Forum

ExifTool => Newbies => Topic started by: Jackalope on February 17, 2012, 09:58:09 AM

Title: Modify datacreate and timecreate from filename
Post by: Jackalope on February 17, 2012, 09:58:09 AM
Hello

first of all, thanks for WONDERFUL command line suites...

then

i've a file named IMG_20120120_104446.jpg with wrong exif data

is it possible to change datacreate and timecreate by using filename?

thanks
regards

Simon
Title: Re: Modify datacreate and timecreate from filename
Post by: Phil Harvey on February 17, 2012, 12:35:51 PM
Hi Simon,

Surprisingly, this is not an uncommon request.  Try this:

exiftool "-datetimeoriginal<filename" DIR

- Phil
Title: Re: Modify datacreate and timecreate from filename
Post by: Jackalope on February 17, 2012, 04:53:58 PM
Hi Phil

thanks for help

it worked perfectly!!!!

Title: Re: Modify datacreate and timecreate from filename
Post by: Phil Harvey on February 17, 2012, 06:25:26 PM
Hi Simon,

Great.  Glad to hear it.

I've added a note about this to FAQ number 5 (https://exiftool.org/faq.html#Q5) since it has come up a few times in the past.  Also, I mentioned the AllDates tag, which may also be convenient in cases like this.

- Phil