title: Image.open() not working for all images
body: <pre><code>from PIL import Image
  imageFile ="C:\Users\Abhi\Desktop\cbir-p\asf.jpg"
  xsize, ysize=Image.open(imageFile).size
  </code></pre>
  
  <p>this code works perfectly for some images. If I use the same code for a different image it reports an error.</p>
  
  <p>error:</p>
  
  <pre><code>Traceback (most recent call last):
    File "C:\Users\Abhi\Desktop\cbir-p\im1.py", line 5, in &lt;module&gt;
      xsize , ysize = Image.open(imageFile).size
    File "C:\Python27\lib\site-packages\PIL\Image.py", line 1993, in open
      fp = builtins.open(fp, "rb")
  IOError: [Errno 22] invalid mode ('rb') or filename: 'C:\\Users\\Abhi\\Desktop\\cbir-p\x07sd.jpg'
  </code></pre>