This function calculates visual hash for given image. Visual hashes can be used to find similar and visually identical images (even when they have different resolution or format). Algorithm is based on an article by Dr. Krawetz.
Two images are visually identical when their hashes are the same.
They are similar if hamming distance between binary representation of the hashes is small (<=5).
Requests can be performed using HTTP GET or POST methods. Response is always in JSON format.
Click POST or GET to see response
No file specified
Uploaded file was bigger than 20 MB
Not an images file (supported are PNG, JPG, GIF)
Below code samples update automatically when you change parameters above
curl, method POST
curl, method GET
wget, method POST
wget, method GET
php, method GET
php, method GET, using curl
php, method POST, using curl