![]() $ is a way to read tag and apply expr regex substitutions in it. for c in `ls -C1 *.jpg` doĮxiftool -P -overwrite_original -tagsfromfile. The following example fixes such occurences by matching JPEG files against their corresponding raw (NEF) files and copying the data from the latter to the former. Sometimes, a bad image editor might generate files with wrong EXIF data. Here, the -tagsfromfile option picks up all the EXIF data from the first file and overwrites it into the subsequent files. The easiest way is to make exiftool copy the data from the corresponding raw file. This is often needed when stitching panoramas or image stacks from multiple source images. One of my frequent requirements is to ensure that post-processed files have the right EXIF data. DSC09539.JPG,DSC-RX10M3,4,0.004,400,600Īs you can see, the shutter speed has changed from a fraction, like 1/25 to a floating point value like 0.04 and the mm unit has been dropped from the equivalent focal length field. Example: $ exiftool -csv -n -Model -Aperture -ShutterSpeed -ISO \ If you don’t want the numeric values to be formatted, use the -n option to extract raw numbers. SourceFile,Model,Aperture,ShutterSpeed,ISO,FocalLengthIn35mmFormat Example: $ exiftool -csv -Model -Aperture -ShutterSpeed -ISO \ Luckily, exiftool can export the above data as CSV too. I often like to perform some quantitative analysis on my photo metadata, so it is helpful to start with data that can be imported into a spreadsheet. For example, here’s how to list the 35mm equivalent focal length for all files in the current directory: $ exiftool -FocalLength35efl. Now it becomes easier to query for specific values in a whole collection of files. In order to see the actual tag names, use the -s option. The default output shows tag descriptions and their readably formatted values. ![]() This simplest exiftool invocation that dumps all EXIF data for the file. ![]() All of these examples work on a Unix shell environment like ZSH on MacOS or the various Linux shells. I’m writing this down because I often spend a lot of time reading through exiftool documentation to find out how to get something done, just to forget it within hours. exiftool is a command-line utility that provides very powerful EXIF reading, writing and searching capabilities. Following is a collection of real exiftool commands that I’ve used, along with explanations of what each does. ![]()
0 Comments
Leave a Reply. |