ExifTool Forum

ExifTool => Newbies => Topic started by: nabbit on July 12, 2012, 01:42:36 PM

Title: Adding SHA1 to Exiftool output
Post by: nabbit 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!
Title: Re: Adding SHA1 to Exiftool output
Post by: Phil Harvey 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