title: Fast and efficient way to detect if two images are visually identical in Python
body: <p>Given two images:</p>
  
  <pre><code>image1.jpg
  image2.jpg
  </code></pre>
  
  <p>What's a fast way to detect if they are visually identical in Python? For example, they may have different EXIF data which would yield different checksums, even though the image data is the same).</p>
  
  <p>Imagemagick has an excellent tool, "identify," that produces a visual hash of an image, but it's very processor intensive.</p>