2023-11-19 - ExifTool 20th anniversary! Version 12.70 released

Main Menu

Adding SHA1 to Exiftool output

Started by nabbit, July 12, 2012, 01:42:36 PM

Previous topic - Next topic


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

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/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).