sort | uniq -c | sort -nr Sorts the list of focal lengths, counts occurrences of each focal length, sorts the results by occurrence count.| wc -c subcommand here tells the pv command the total number of files so it can calculate the progress. pv -l -s $(find -iname '*.cr2' -printf '.' | wc -c) Shows a progress bar, which comes in handy when going through thousands of files.I added this because I was getting a lot of unimportant warnings. Appending 2> /dev/null suppresses errors. exiv2 -K -P t "$f" Reads the metadata for each file, specifically outputting the focal length.done Loops through the output from the find command, again delimited by a null character. The -print0 option changes the delimiter to a null character instead of a newline, to avoid issues in the unlikely event that there is a newline within a filename. find -iname '*.cr2' Gets a list of all the.It took a couple minutes to get through about 4,000 files on my machine, so it was nice to have.Īnd here it is: find -iname '*.cr2' -print0 \Įxiv2 -K -P t "$f" 2> /dev/null done \ About a month back, I traded in my trusty 85mm f/1.8 for the Nikon flagship portrait lens, the 85 f1.4G. pv package - Optional, if you want to have a progress bar. Enter FoCal, a semiautomated focus calibration software.Linux/Unix system (I've only done this on Arch, but it shouldn't matter).I'm guessing this will work for other image formats as well, but I have not tried it. This will count the totals for each focal length for all CR2 files in a directory and subdirectories.
#FOCAL PRO SOFTWARE MAC#
Included with each FoCal Pro purchase is the licence key to use FoCal Pro with supported cameras on both Windows and Mac operating systems. I came up with another option for *nix users. FoCal Pro from Reikan is purpose designed to provide a comprehensive and accurate way to focus calibrate and test most modern Canon and Nikon DSLR cameras and lenses. $exif | Group-Object ISO, Aperture | Sort-Object count -Descending | Select-Object Count, name
#FOCAL PRO SOFTWARE ISO#
# Find the most used combination of ISO and Aperture: $exif | Group-Object LensID | Select-Object Name | Sort-Object Name $exif | Group-Object Focallength -NoElement # Load the exifdata to a variable for further manipulation:
CSV-file into Excel or any other spreadsheet program - or you keep going with your PowerShell window: You could delete all but -FocalLength if you want to. # Note: It gets a lot of metadata, not only focal length. CSV-file:Ĭ:\temp\exiftool.exe "Z:\Pics" -csv -r -ext NRW -ext CR2 -ext JPG -ISO -ISOSetting -Aperture -ExposureTime -Model -Lens -FocalLength -LensID -ExposureCompensation -MeteringMode -Flash -FocusMode -AFAreaMode -CreateDate > c:\temp\all_exif.csv As you can see, more than half of everything is comments, so keep calm! :) # Let exiftool collect all EXIF-data from a directory (recursively) and save it in a. Open up a PowerShell terminal and copy and paste your way through this:įor those not used to code: Lines beginning with a # mark a comment line. I was about to write a tool myself when I encountered Alex Jensen's post: May work on other OSs with PowerShell Core, and with exiftool instead of exiftool.exe. Prerequisites: PowerShell (so: Windows), exiftool.