Is there anyway (commandline tools) to calculate MD5 hash for .NEF (also .CR2, .TIFF) regardless any metadata, e.g. EXIF, IPTC, XMP and so on?
The MD5 hash should be same once we update any metadata inside the image file.
I searched for a while, the closest solution is:
exiftool test.nef -all= -o - -m | md5
but 'exiftool -all=' still keeps a set of EXIF tags in the output file. The MD5 hash can be changed if I update remaining tags.
exiv2 rmworks best.exiftoolandconvertcan't remove all metadata from .nef FILE. I triedexiv2 rm | md5on my origin .NEF file and the file outputted byexiftool -all=. The results are same. The output file ofexiv2 rmcan no longer be displayed. But I only need MD5 hash keeps same after updating any metadata of the .NEF file. It works perfect for my requirements.