check that images are the same?

Discussion related to "Everything" 1.5.
Post Reply
wkearney99
Posts: 28
Joined: Sun Nov 07, 2021 2:42 pm

check that images are the same?

Post by wkearney99 »

I have a number of directories with imagines named folder.jpg moviename-poster.jpg

Where 'moviename-poster.jpg' would have the 'moviename' part of the string be different. Most usually based on an .mp4 file present in the directory, not the parentname of the directory.

Is there a way to check that they have the same hash?

As in, recursively search child directories within a path (but only at a certain depth) and confirm that the hashes for two files are the same.

I'm guessing some combination of sibling: might be involved? As I'm only interested in verifying that folders with moviename-poster.jpg and folder.jpg are the same.

I suppose my alternative is to use some scripting externally to do this, as part of the eventual solution is going to be to correctly copy the images as needed. But since EV has all this data already, I figured I'd give it a chance to find the results to confirm that I have a widespread enough inconsistency to justify writing some code to deal with it.
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: check that images are the same?

Post by void »

To find the posters, please try the following search:

Code: Select all

<<whole:folder.jpg sibling:*-poster.jpg> | <*-poster.jpg whole:sibling:folder.jpg>>


To find poster files with the same hash, please try:

Code: Select all

<<whole:folder.jpg sibling:*-poster.jpg> | <*-poster.jpg whole:sibling:folder.jpg>> dupe:size;sha256
therube
Posts: 5723
Joined: Thu Sep 03, 2009 6:48 pm

Re: check that images are the same?

Post by therube »

dupe:size;sha256


So we're processed left to right, so size dupes are found before any files hashed, correct?
void
Developer
Posts: 19870
Joined: Fri Oct 16, 2009 11:31 pm

Re: check that images are the same?

Post by void »

Yes, correct.
Post Reply