title: PIL Image.resize() not resizing the picture
body: <p>I have some strange problem with PIL not resizing the image.</p>
  
  <pre><code>from PIL import Image
  img = Image.open('foo.jpg')
  
  width, height = img.size
  ratio = floor(height / width)
  newheight = ratio * 150
  
  img.resize((150, newheight), Image.ANTIALIAS)
  
  img.save('mugshotv2.jpg', format='JPEG')
  </code></pre>
  
  <p>This code runs without any errors and produces me image named <code>mugshotv2.jpg</code> in correct folder, but it does not resize it. It does something to it, because the size of the picture drops from 120 kb to 20 kb, but the dimensions remain the same. </p>
  
  <p>Perhaps you can also suggest way to crop images into squares with less code. I kinda thought that <code>Image.thumbnail</code> does it, but what it did was that it scaled my image to 150 px by its width, leaving height 100px.</p>