title: Opening Image file from url with PIL for text recognition with pytesseract
body: <p>I am facing a confusing problem trying to download image and open it with BytesIO in order to extract text from it using PIL &amp; pytesseract.</p>
  
  <pre><code>&gt;&gt;&gt; response = requests.get('http://abc/images/im.jpg')
  &gt;&gt;&gt; img = Image.open(BytesIO(response.content))
  &gt;&gt;&gt; img
  &lt;PIL.JpegImagePlugin.JpegImageFile image mode=RGB size=217x16 at 0x7FDAD185CB38&gt;
  &gt;&gt;&gt; text = pytesseract.image_to_string(img)
  &gt;&gt;&gt; text
  ''
  </code></pre>
  
  <p>Here it gives an empty string.</p>
  
  <p>However if i save the image and then open it again with pytesseract, it gives the right result.</p>
  
  <pre><code>&gt;&gt;&gt; img.save('im1.jpg')
  &gt;&gt;&gt; im = Image.open('im1.jpg')
  &gt;&gt;&gt; pytesseract.image_to_string(im)
  'The right text'
  </code></pre>
  
  <p>And just to confirm, both give same size.</p>
  
  <pre><code>&gt;&gt;&gt; im.size
  (217, 16)
  &gt;&gt;&gt; img.size
  (217, 16)
  </code></pre>
  
  <p>What can be the problem? Is it necessary to save the image or am I doing something wrong?</p>