Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $image1 = new \Imagick('/test.jpg');
- $image2 = new \Imagick($path.'/'.$photoName);
- $result = $image1->compareImages($image2, \Imagick::METRIC_MEANSQUAREERROR);
- if($result[1] < 0.0001) {
- echo 'Изображения идентичны';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement