kan*_*der 19
ImageMagick通过PHP ImageMagick扩展提供了各种可用于此的工具.
http://www.php.net/manual/en/function.imagick-compareimages.php
最大的问题是该库的文档几乎不存在,因此会涉及大量的反复试验.
小智 18
$md5image1 = md5(file_get_contents($image1));
$md5image2 = md5(file_get_contents($image2));
if ($md5image1 == $md5image2) {
}
Run Code Online (Sandbox Code Playgroud)