I decided to whip up a quick-and-dirty shell script for reporting the actual shutter count. It works by extracting the required value from a JPEG file using
exiftool. The problem is that the only camera manufacturer that actually provides shutter count in the EXIF metadata is Nikon. For others, the only approximation you can get is the Image Count or Image Number values.
This is exactly what the script tries to do. It works with JPEGs from Nikon cameras and Sony’s ILCE-6xxx models, but it doesn’t work with Sony RX100 series and Olympus E-PLx. I wonder whether there is better way to do this? Here is the script in all its crude glory:
#!/usr/bin/env bash imagenumber=$(exiftool $1 | grep -m 1 "Image Number" | cut -d":" -f2 | tr -d " ") if [ ! -z "$imagenumber" ]; then kdialog --msgbox "Image number: $imagenumber" fi imagecount=$(exiftool $1 | grep -m 1 "Image Count" | cut -d":" -f2 | tr -d " ") if [ ! -z "$imagecount" ]; then kdialog --msgbox "Image count: $imagecount" fi shuttercount=$(exiftool "$1" | grep "Shutter Count" | cut -d":" -f2 | tr -d " ") if [ ! -z "$shuttercount" ]; then kdialog --msgbox "Shutter count: $shuttercount" fi