Hi,
I have a bunch of images and some of them (arround 10%= doesn't have a valid DateTImeOriginal EXIF date, so I want to fix them, you would normally say:
exiftool -v "-FileModifyDate>DateTimeOriginal" *
But I want the command to affect only to the images that are missing the DateTimeOriginal EXIF date, I don't want ALL the images to have their DateTimeOriginal EXIF date replaced by their FileModifyDate.
Can this be done?.
Thanks. Jordi.
Hi Jordi,
The -wm (WriteMode) option gives you full control over this. Adding -wm cg to your command disables writing to existing tags.
Alternatively, -if "not $datetimeoriginal" may be added, but this is less efficient because it requires an additional read of metadata from the file.
- Phil
Thanks a lot PHil, I'll try it!