title: Python Image conversion with PIL library
body: <p>I am new to Python and I have tried sample code I have been given.</p>
  
  <p>I Want to convert bulk TIFF files to JPG. The TIFF size will be 3MB or more. I want to resize to my requirement width is 1200 height also I will provide some Y</p>
  
  <p>When I run sample codes given</p>
  
  <p>For example: </p>
  
  <p>original image size is 1748 X 2479</p>
  
  <pre><code>import PIL
  import PIL.Image, PIL.ImageFile
  from exceptions import IOError
  
  img = PIL.Image.open("p3.tif")
  img.MAXBLOCK = 2**20
  destination = "x.jpeg"
  img.resize((1200,1800))
  
  try:
      img.save(destination, "JPEG", quality=10, optimize=True, progressive=True)
  
  except IOError:
      PIL.ImageFile.MAXBLOCK = img.size[0] * img.size[1]
      img.save(destination, "JPEG", quality=10, optimize=True, progressive=True)
  </code></pre>
  
  <p>Its not resize the value what I have given.</p>