ExifTool Forum

ExifTool => Newbies => Topic started by: windsurf on November 26, 2012, 02:34:30 AM

Title: Rebuild Exif from SysFileDateTime
Post by: windsurf on November 26, 2012, 02:34:30 AM
Hi there, just wondering if this is possible:

I've removed all EXIF information from .JPG files (yeah, stupid but I did some time ago).
Now I want to rebuild the EXIF information from existing information, like the filesystem date & time.

I've tried exiftool -exif:all= -tagsfromfile @ -all:all -unsafe filename.jpg from the examples, but this does not add an EXIF to the file ;-)

Thanks for helping me out!
Title: Re: Rebuild Exif from SysFileDateTime
Post by: Phil Harvey on November 26, 2012, 07:20:34 AM
The example command copies tags to the same location, but you want to copy the system tags to EXIF.

Try this:

exiftool "-alldates<filemodifydate" -P filename.jpg

The AllDates tag is a Shortcut tag representing CreateDate, ModifyDate and DateTimeOriginal.

I added the -P option to preserved the original FileModifyDate.

- Phil