Author Topic: Adding SHA1 to Exiftool output  (Read 2117 times)


  • Newbie
  • *
  • Posts: 1
Adding SHA1 to Exiftool output
« on: July 12, 2012, 01:42:36 PM »
Hi there,

I'm using the Exiftool as part of my University project (looking at and amending smartphone camera metadata). What I'm looking to do is add a SHA1 hash as part of the output from Exiftool (using Linux). Sadly, my perl programming is worse than awful, I really have no clue how to do it! Is there an easy way to add this to the output?

Many thanks!

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14895
    • ExifTool Home Page
Re: Adding SHA1 to Exiftool output
« Reply #1 on: July 22, 2012, 07:16:17 AM »
Sorry for the delay in responding.  I was on vacation.

I don't know how you want to generate this hash, but the syntax to write any tag in ExifTool is

exiftool -TAG=VALUE FILE

The only problem is determining what TAG name to use, and where to get the VALUE.  But you could probably do what you want easily in a shell script.

- 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 ($).