Skip to content

nvthaovn/CompareImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CompareImage

PHP fast image compare lib. Get hash string and detect duplicate image

Example

$image1 = 'image1.jpg';
$image2 = 'image2.jpg';
$compareMachine = new compareImages($image1);
$diff = $compareMachine->compareWith($image2);

Other way

$image2Hash = $compareMachine->hasStringImage($image2); 
$diff = $compareMachine->compareHash($image2Hash);

Result

If($diff<11){
  echo 'Duplicate Image';
}
else{
  echo '2 different image';
}

About

PHP fast compare and detect duplicate image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages