I have a collection of photos that have no date information. They have no Exif data, and the file modification dates are all identical. The only sequence is in the file name: image-0001.jpg, image-0002.jpg, etc.
Now I want to assign a date to these files (preferably in Exif) that are all 10 seconds apart. I'm not so interested in what exactly the base date and time will be, just that they all increment 10 seconds. So the first image will get 0:00:00, the second 0:00:10, the third 0:00:20, etc.
Is this possible with ExifTool, or other Windows applications? We're talking about several thousands of images, so doing this manually is out of the question ;-)
$filesequenceis a magic exiftool variable; in junkyardsparkle's,$fileis a bash variable. This is more portable; the other ties the time to the filename rather than to the order exiftool happens to read them. – mattdm Feb 22 '15 at 18:36exiftool "-datetimeoriginal+<0:0:$filesequence" image-0010.jpg(in DOS format), but result is "0 image files updated, 1 image files unchanged" – Peter Feb 22 '15 at 21:42$filesequencestarts at 0. When you have only one file, it's only ever set to 0, which makes the whole thing a no-op. It should work if you have a whole directory of files. – mattdm Feb 22 '15 at 22:15'vs"is significant — with double quotes, the$will be caught and interpreted by the shell (as in Jens' answer), but in this answer it needs to be a single quote so it's interpreted by ExifTool internally. – mattdm Feb 22 '15 at 22:16-datetimeoriginal+<0:0:${filesequence;$_*=3}(braces required). At that point you're starting to use the advanced formatting and slipping some perl code in there.
– StarGeek Feb 23 '15 at 07:35"instead of'. But now it works perfect! – Peter Feb 24 '15 at 14:04