ExifTool Forum

General => Metadata => Topic started by: wayn0i on August 10, 2017, 01:27:49 PM

Title: duplicates
Post by: wayn0i on August 10, 2017, 01:27:49 PM
Hi Phil,

Is there a way I can md5 a raw image (image only no metadata) and write that to an existing of custom tag?

Regards

Wayne
Title: Re: duplicates
Post by: Phil Harvey on August 10, 2017, 01:35:09 PM
Hi Wayne,

On Mac/Linux, you could do this:

exiftool -TAG="`exiftool FILE -all= -o - | md5`" FILE

But the success of the -all= depends on the type of raw file and the metadata it contains.

- Phil
Title: Re: duplicates
Post by: wayn0i on August 10, 2017, 02:07:36 PM
Thank you Phil thats great but also annoying as I spent 2 hours trying to get it to work.

And if I wanted to run this across a folder of images?

Regards

Wayne
Title: Re: duplicates
Post by: wayn0i on August 10, 2017, 03:07:07 PM
I now know how to process a folder of images, but how do I delete the _original files being created.

Thankyou Phil
Title: Re: duplicates
Post by: Phil Harvey on August 11, 2017, 07:16:01 AM
Add -overwrite_original to the command.

- Phil