Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

How to compare a images(jpeg,gif,png) in a folder to remove the duplicate images .all images in a folder have unique file name..

Thanks in advance
Posted
Comments
joshrduncan2012 31-Jul-13 9:10am    
What have you tried so far?

The best method is to sort the files based on their sizes and find duplicate sizes.

You can use FileInfo for this : http://msdn.microsoft.com/en-us/library/system.io.fileinfo.aspx[^]
 
Share this answer
 
Comments
Maciej Los 31-Jul-13 9:23am    
Mehdi, OP wants to remove duplicates no matter of size, but depends on content - i think so...
OP wants to compare different types of images (jpg, png, gif). As we know, they can be the same (content) but their size can differ.
 
Share this answer
 
Comments
Mehdi Gholam 31-Jul-13 9:28am    
5'ed
Maciej Los 31-Jul-13 9:32am    
Thank you, Mehdi ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900