ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Identical Images
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

bmesser

United Kingdom
254 Posts

Posted - Jun 12 2026 :  03:37:35  Show Profile  Reply
Hi

I have a folder with hundreds of 1024x1024 PNG images in it.

I want to remove any identical images in it.

I wonder if there's an easy way to compare images in imageen?

AI provides me with a method, but I would rather go the easier and quicker route if possible.

Bruce

xequte

39450 Posts

Posted - Jun 12 2026 :  16:31:45  Show Profile  Reply
Hi Bruce

So the quickest method is to get a hash of all the images and then find the ones with the same hash:

http://www.imageen.com/help/TIEBitmap.GetHash.html

Of course, that only gets you 1:1 matches. You might consider ones that are the same but different sizes, or colors. So you might want to scale the images to a standard size (not relevant for the case you mention that are already the same size) or convert to gray scale. Generate the hash for the sub-subsampled images.

The other potential issue (again, not in the case you mention below) is JPEG compression differences, so in that case you are better to reduce to a much smaller size and compare that.

See also:

http://www.imageen.com/help/TImageEnProc.CompareWith.html
http://www.imageen.com/help/TImageEnProc.ComputeImageEquality.html


Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: