Update CreateDate only for specific camera

Started by fstr, March 15, 2015, 07:58:35 PM

Previous topic - Next topic

fstr

Hi, my motorola phone uses the wrong CreateDate. Through lots of reading I figured out how to fix the date:

c:\exiftool\exiftool "-DateTimeOriginal>CreateDate" -r -ext jpg \\NASE5FB44\Multimedia\Pictures\Test

But as I upload photos from multiple cameras into the same folder, I only want to run the script where the exif data identifies it as my phone. Something in the line of Camera Model Name = XT1095.

Can someone please tell me how to update above script to only run for a specific camera model?

Thanks!

Phil Harvey

The command would be:

c:\exiftool\exiftool -if "$model=~/XT1095/" "-DateTimeOriginal>CreateDate" -r -ext jpg \\NASE5FB44\Multimedia\Pictures\Test

- 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 ($).

fstr