title: How to Image.open a RAW (CR2) file in python?
body: <p>I have the following code for a <em><strong>.tif</strong></em> file:</p>
  <pre><code>img = Image.open(&quot;randompic.tif&quot;)
  
  image = Jpeg()
  image.encodeRGB(&quot;randompic.tif&quot;)
  print(np.array_equal(image.total_bit_objects, np.asarray(Image.open('randompic.tif').convert('L'))))
  </code></pre>
  <p>I try to adapt it for a <em><strong>.CR2</strong></em> file :</p>
  <pre><code>img = np.fromfile('IMG_4387.CR2', &quot;uint16&quot;)
  
  image = Jpeg()
  image.encodeRGB(&quot;IMG_4387.CR2&quot;)
  print(np.array_equal(image.total_bit_objects, np.asarray(Image.open('IMG_4387.CR2').convert('L'))))
  </code></pre>
  <p>However, <em>Image.open('IMG_4387.CR2')</em> does not work.</p>
  <p>Do you have any idea to fix me ?</p>