Advertisement
Guest User

Untitled

a guest
Jul 20th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. $image1 = new \Imagick('/test.jpg');
  2. $image2 = new \Imagick($path.'/'.$photoName);
  3.  
  4. $result = $image1->compareImages($image2, \Imagick::METRIC_MEANSQUAREERROR);
  5.    
  6. if($result[1] < 0.0001) {
  7.     echo 'Изображения идентичны';
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement