ExifTool Forum

ExifTool => Newbies => Topic started by: DumbMarine on February 17, 2013, 02:20:46 PM

Title: Write Create Date of image from filename for image without exif data
Post by: DumbMarine on February 17, 2013, 02:20:46 PM
Hello,

     I am hoping someone can explain in simple terms what I have to do to update (insert) an Exif create date from an images filename (or substring of the filename).  All image files are in a single folder on a windows 7 64 bit platform.

Example Filename: 2002-01-24 H19-55-50-IPD-687.jpg

Ideally the Exif create date would be set to 2002-01-24 @ 19:55:50pm

There are around about 1000 image files so a batch solution or something that would operate on all at once would be good.

In anticipation of a successful response, thanks

Ian
Title: Re: Write Create Date of image from filename for image without exif data
Post by: Phil Harvey on February 17, 2013, 04:09:44 PM
Hi Ian,

Try this:

exiftool "-datetimeoriginal<filename" DIR

where DIR is the name of a directory containing the images.

- Phil
Title: Re: Write Create Date of image from filename for image without exif data
Post by: DumbMarine on February 17, 2013, 04:22:52 PM
Thanks Phil,

I will give it a go and report back.

cheers
Ian
Title: Re: Write Create Date of image from filename for image without exif data
Post by: DumbMarine on February 19, 2013, 07:13:26 AM
Phil,

  That advice and information worked sweetly.  All beautifully updated which allows proper filing. 

thanks

Ian