title: Get image mode PIL Python
body: <p>I am trying to blend two images together but I keep getting an error that one of the images in in the wrong mode. I tried to convert this image but every mode I have tried just makes the entire image white. Is there a way in Python with the PIL module to find out what the current image mode is?</p>
  
  <pre><code>Image.blend(img ,im ,0.05)
  </code></pre>
  
  <p>Error message:
  <code>ValueError: image has wrong mode</code></p>