How to copy MD5 and SHA1 values, I tried some code, error.On-line urgent beg!!!

Started by yandazhuang, October 18, 2020, 11:26:07 PM

Previous topic - Next topic

yandazhuang

Phil Harvey, StarGeek,How are you these days?, it's getting cold here, I'm sure it's getting cold in your place, so take care of yourself.
Recently at work, I met a trouble, our pictures, video, uploaded to the site, found not suitable, download, modify, upload again, will become a new video, or picture, problem: our exiftool powerful tool, can you copy the original MD5 value, SHA1 value, to change the video after the, or in the picture,
I used this code :exiftool -all = -o-image.jpg | md5--.
exiftool FILE -rawimagedigest=`exiftool FILE -all= -o - | md5`
No, I copy the MD5 and SHA1 values, is there any way to implement it now?Please point out, thank you, thank you very much!
Phil Harvey is an eternal God in my heart. Although I am a Chinese and can't read English, I will learn from you and worship you. The greatest God in my heart --Phil Harvey!

Phil Harvey

This works for JPEG files (on Mac):

> exiftool a.jpg -rawimagedigest=`exiftool a.jpg -all= -o - | md5`
    1 image files updated
> exiftool a.jpg -rawimagedigest
Raw Image Digest                : 4bea23b154f89ba79ea172b39bbf8200
> exiftool a.jpg -all= -o - | md5
4bea23b154f89ba79ea172b39bbf8200


It won't work for video files though.

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

yandazhuang

Phil Harvey, Sir, your quick reply me, so busy at ordinary times, also take care of the little white, thank you very much, really appreciate, I deal with now is the picture, and can be an error every time, and I don't know why, now the problem has three, one, an error every time, I can't solve changed many times, 2, and a little bit don't understand, you send me the code is a. pg to a. pg.What I want is, a.jpg (MD5 before modification) to.jpg(MD5 after modification), 3, if it's video, which code do I need to change?Please guide, thank you, the following is the code output of each error:

G:\exiftool-12.06>exiftool y.gest = 'exiftool y.gest -rawimagedigest=' exiftool y.jcpg-all = -o-| md5 '
'MD5' is not an internal or external command, nor is it a runnable program
Or batch files.
G:\exiftool-12.06>exiftool y.jpg-all = -o-| md5
'MD5' is not an internal or external command, nor is it a runnable program
Or batch files.
G: \ exiftool - > 12.06


Phil Harvey is an eternal God in my heart. Although I am a Chinese and can't read English, I will learn from you and worship you. The greatest God in my heart --Phil Harvey!

StarGeek

Windows doesn't come with an MD5 program.  You need to add one.

Also, that command uses the backtick ` shell feature that isn't available on Windows.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

And yandazhuang, this is just a suggestion about your profile text "Phil Harvey is an eternal God in my heart!":  While this is flattering, in English this is much too strong.  You might want to tone it down a bit. ;)

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