So, I’m into photography, and I like to keep an eye on the shutter count of my camera. It’s a vital metric: The higher it gets, the more likely it is to start causing problems.
My Nikon D850 is supposed to be good for 200,000 shots, but I’ve seen cameras that have way exceeded that and still work fine. However, I’m not planning on selling mine anytime soon, but I wanted a quick way to check the count using just a raw photo from the camera as a CLI (Command-Line Interface).
The Python package exifread
gives access to that number, even though some customization is still required because the EXIF (Exchangeable Image File Format) parameters for the shutter count aren’t always the same.
So, I’ve created a Python script to tackle this and turned it into a handy CLI tool. Head over to the post to grab the entire code, complete with plenty of comments to walk you through every step, or clone the git repository.
(more…)