Author Topic: compute image digest  (Read 1647 times)

babar

  • Newbie
  • *
  • Posts: 1
compute image digest
« on: March 21, 2013, 11:19:52 AM »
Would it be possible for exiftool to compute an image digest (MD5 for example) and
-store it
-compare it with stored value and log differences as warnings
 
storage is already possible with DNG file we could use that xmp field on other image type.
-> I find it very hard today to check whether my file are corrupted or not:

corruption of metadata -> exiftool can do that in batch and log all the errors
corruption of actual image data -> no one does it. MD5 checksum tools are useless as they will report a changed sum as soon as we edit the image metadata, which may happen frequently (add a location, add a keyword, change the legend or title...) and no one stores it in the file which makes it complicated to deal with.

-> So I some time find my self facing corrupted image that have been backed up as such several times and there is no more good back up to retrieve the image

I am sure it would serve many people

It would really be a great tool

thanks
regards

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 15346
    • ExifTool Home Page
Re: compute image digest
« Reply #1 on: March 21, 2013, 11:47:35 AM »
To get an MD5 of the image only, you can do this:

exiftool -all= -o - image.jpg | md5

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).