title: Is it possible for two images to have the same pixel values but still be different?
body: <p>I'm working on a Python project where I encrypt and decrypt an image. However, every time I run it, the decrypted image is different from the original although it has the same pixel values.</p>
  <p>My code</p>
  <pre class="lang-py prettyprint-override"><code>img = Image.open(path)
  pixel_values =np.asarray(img)
  img2 = Image.open(&quot;decrypted.png&quot;)
  pixel_values_2 =np.asarray(img2)
  print(pixel_values_2==pixel_values)
  </code></pre>
  <p>gives an output of:</p>
  <pre class="lang-none prettyprint-override"><code>[[ True  True  True ...  True  True  True]
   [ True  True  True ...  True  True  True]
   [ True  True  True ...  True  True  True]
   ...
   [ True  True  True ...  True  True  True]
   [ True  True  True ...  True  True  True]
   [ True  True  True ...  True  True  True]]
  </code></pre>
  <p>Does anyone know what I might be missing here or if I haven't considered something?</p>
  <p>Original image:</p>
  <p><img src="https://i.stack.imgur.com/Gg64C.png" alt="original" /></p>
  <p>Decrypted image:</p>
  <p><img src="https://i.stack.imgur.com/TNE1G.png" alt="decrypted" /></p>