If this command is run under Unix/Mac/Powershell, reverse any double/single quotes to avoid variable interpretation. Replace /path/to/files/ with the actual path to the files you want to process. Also included is the -n ( -printConv) option to output in decimal format rather than Degrees/Minutes/SecondsĮxiftool -csv -n -GPSLatitude -GPSLongitude /path/to/files/ >out.csv exiftool -s -all DSC09535.JPG ExifToolVersion : 11.59 FileName : DSC09535.JPG Directory. In order to see the actual tag names, use the -s option. The default output shows tag descriptions and their readably formatted values. You might also look at exiftool's -csv option and get CSV file which you could then load into Excel/LibreOffice and see all the values directly. This simplest exiftool invocation that dumps all EXIF data for the file. The -ext ( -extension) option is used to exclude XMP files, as it can be assumed they are sidecarsĮxiftool -srcfile %d%f.xmp -srcfile -ext XMP -f -api "MissingTagValue=N" -p "$ $FilePath" /path/to/files/ The -srcfile option is used to read and prioritize XMP sidecars if they exist. Exiftool's Advanced formatting feature is used to print a ' Y' if the tag exists. To work around this, the -f ( -ForcePrint) option is used with -api MissingTagValue option to set the default to ' N'. However, it would be nice to see Adobe adopt this tool and bundle it with Bridge. I have written scripts to help integrate EXIFTool with Bridge. To get a Y/N in front is a bit more complex, because by default, exiftool won't print anything for missing tags. Bridge beta 14.0.0.57 EXIFTool is a powerful F/OSS tool which allows reading and writing metadata far beyoind Adobe's XMP implementation. Using exiftool, to get a simple list of all files that include a GPS coordinate, you could do thisĮxiftool -if "$GPSLatitude" -p "$FilePath" /path/to/files/ ExifTool will not attempt to write these tags with a CSV import). But then I have further actions to take with the list, and that's daunting with more than three thousand directories. Also, FileName and Directory columns are ignored if they exist (ie. So that is alleviated by the ability to put multiple files in one CSV list. It was clumsy because I thought I would have to run each file to a temp file of tags, check for GPS in the temp file, and then do something with the image file based on that. I didn't know about the -if option-I'll have to look into that. My "clumsy method" would take advantage of the fact that exiftool will leave the GPSDateTime field blank when no GPS data. So I'll likely run the thing non-recursive in each directory. LibreOffice Calc can handle more than 24K rows but I've seen its performance go to crap with large amounts of data. (And it currently crashes my laptop when I try to open the app) And either at the same time or in a separate job, to reverse geocode a description of the location in an exif comment for those that have GPS.Īpple's Photos app sorts them by location but it keeps that info separate from the photo. Or one list with each identified as having or not. I'd like to make lists of those that have GPS tags and those that don't. I have more than 24 thousand images, from several different devices. I have a rather clumsy and inefficient way to do this with exiftool, find, etc., but maybe there's a better way …
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |