Click here to Skip to main content
15,893,588 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Dear developer,

How to compare my image with inside folder another image in Javascript.

Note:

my image is : input image, and
second image is : located in folder

if two are equal then return true

otherwise return false


And how to get work with folder files in javascript.???
Posted
Updated 3-Apr-12 3:44am
v2
Comments
[no name] 3-Apr-12 9:44am    
No reason to BOLD lines. It just makes it annoying.

1 solution

JavaScript does not have the capabilities to do the binary comparison necessary for this nor will it have access to all folders on a client system.
 
Share this answer
 
Comments
DominicZA 3-Apr-12 9:50am    
I think you might be mistaken here! HTML 5 has added quite a lot of functionality as far as image processing is concerned. I agree that there would be issues accessing the file on the users system, but if both images could be loaded into the page, JavaScript definitely can do the check to see if the images are the same. Have a read on HTML 5 and its Canvas element.

-Dom
[no name] 3-Apr-12 10:06am    
Yes there are quite a number of unapproved frameworks available. Not all browsers support HTML5 nor all of the capabilities or implement them the same. Solutions should not be given which rely on such capabilities.

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