If this command is run under Unix/Mac, reverse any double/single quotes to avoid bash interpretation. Add -overwrite_original to suppress the creation of backup files. It then sets the three most common EXIF timestamps, DateTimeOriginal, CreateDate, and ModifyDate to YEAR-01-01 00:00:00. This command uses exiftool's Advanced formatting feature to regex match four digits to use as the year. Any differences would need modification of command. There can't be any other group of four numbers in the directory path, as that could be mistaken for a year. you can't CD to that directory and use a dot to indicate the current directory, though you can be in the directory above the years and use the -r option to recurse. You must give a directory path that includes the year i.e. This command will not overwrite any existing data it the file, only write new data where there was none before.This can be done with exiftool with this commandĮxiftool "-Alldates<$ 0101 000000" /path/to/files/ You can add options I gave above to deal with the backup files and recursing into subfolders. ![]() So try this command exiftool -wm cg "-AllDates ![]() I'm assuming by "date modified value" you mean the file system modified timestamp, which is what I've used for these commands.īut the above listed command should work with Google Photos, as it will read all three of the main EXIF tags (the ones covered by the AllDates shortcut). I've had cases were it could take 30 minutes before it was updated, though that was rare. I have noticed that in the past, it can sometimes take a while before Google will properly display embedded metadata. You'll have to test to see if updating a file that way will change what is displayed with Google Photos. I don't really know how the interaction between rclone and Google Photos will affect things, as the only way I've tested GP is uploading through the website. Google photos will read a large number of timestamps to fill the date entry, though I'm not sure what it will read in a PNG as I haven't tested them. The author of exiftool is very responsive to questions on the exiftool forums. The -wm (writemode) option with the cg parameters means that if a tag already has a value, it will not be overwritten. Overwrite original by copying temporary file. This additional parameter would have no affect on jpegs/tiffs. ExifTool lets you modify and analyze metadata in multimedia files from the command line. ![]() If you have mixed jpegs/tiffs and PNG files, then you could add "-PNG:CreationTimeyou could replace DateTimeOriginal with AllDates and it will write to DateTimeOriginal, CreateDate, and ModifyDate EXIF tags. This is based upon Exiftool FAQ 5 which says 'ExifTool is very flexible about the actual format of input date/time values when writing, and will attempt to reformat any values into the standard format unless the -n option is used. This will copy the system FileModifyDate and copy it to the DateTimeOriginal tag, which is the most commonly read EXIF timestamp. ![]() Using exiftool, you would be able to run this command exiftool -wm cg "-DateTimeOriginal
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |