title: Py2exe'd Python script cant save image in TIFF format
body: <p>There is a python script i'm working on which processes an Image and converts and saves it from a GIF image into a TIFF format with extension ".tif"...</p>
  
  <p>The script works fine and even gives me the proper output..</p>
  
  <p>However, when i convert it into an exe using Py2exe(even tried Cx-Freeze)
  it is unable to save the processed image in TIFF format... it throws the following error:</p>
  
  <blockquote>
    <p>File "PIL\Image.pyc", line 1423, in save KeyError: '.tif'</p>
  </blockquote>
  
  <p>the code for saving the image looks like this..</p>
  
  <pre><code>im_orig = Image.open(path1)
  big = im_orig.resize((116, 56), Image.NEAREST)
  ext = ".tif"
  new=path.replace('.','') 
  newpath=new+"input-NEAREST"+ext
  newimage=big.save(newpath)
  </code></pre>
  
  <p>I even tried changing the above code as follows to avoid the Key Error</p>
  
  <pre><code>im_orig = Image.open(path1)
  big = im_orig.resize((116, 56), Image.NEAREST)
  new=path.replace('.','') 
  newpath=new+"input-NEAREST.tif"
  newimage=big.save(newpath, "TIFF" )
  </code></pre>
  
  <p>The changed code once again works perfectly fine when i run it as a script , </p>
  
  <p>but throws error when i run the script as an executable !</p>
  
  <p>The error i get is:</p>
  
  <pre><code>\PIL\Image.py", line 1429, in save
  save_handler = SAVE[string.upper(format)] # unknown format
  KeyError: 'TIFF'
  </code></pre>
  
  <p>apparently the error is supposed to be in this line:</p>
  
  <pre><code>newimage=big.save(newpath, "TIFF" )
  </code></pre>
  
  <p>Will really appreciate any help or guidance in solving this problem.</p>