Sample command line to keep original date of EXIF data

Started by websupernet, September 15, 2010, 06:50:35 PM

Previous topic - Next topic

websupernet

Is there a sample command line for keeping the original date in the EXIF Data while removing all the rest of the data?  I tried to do it with Irfanview but it does not work even though it gives you the option to save the original date, it only saves with the current date.
Thanks,
Dan

Phil Harvey

Hi Dan,

This may do what you want:

exiftool -all= -tagsfromfile @ -datetimeoriginal FILE

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).