This script was developed by ChatGPT o1 with human suppervision of Arthur Soares Website / Threads :).
On a Leica M digital camera, lenses are normally identified via an internal “6-bit encoding.” Leica’s native lenses have unique codes, and the camera writes lens info to the file’s EXIF metadata. However, third-party lenses (Voigtländer, Zeiss, etc.) often lack an official Leica 6-bit code, so photographers commonly “reuse” a Leica lens code with similar focal length and aperture. This results in Leica Summicron lens info showing up in the metadata even when you’re shooting with, say, a Voigtländer 35 mm f/2 Ultron.
This script uses ExifTool to: