Rebuild Exif from SysFileDateTime

Started by windsurf, November 26, 2012, 02:34:30 AM

Previous topic - Next topic

windsurf

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!

Phil Harvey

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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).