title: How to create a multiple frame .tif image using Python PIL
body: <p>How would I go about creating a new image, using python PIL, which has multiple frames in it.  </p>
  
  <pre><code>new_Image = Image.new("I;16", (num_pixels,num_rows))
  
  for frame in range((len(final_rows)/num_rows)):
      pixels = new_Image.load()
  
      for row in range(num_rows):
          row_pixel = final_rows[row].getPixels()
          for pixel in range(num_pixels):
              pixels[pixel,row] = row_pixel[pixel]
      print frame
      new_Image.seek(frame)
  </code></pre>
  
  <p>I tried using the above code but it gives me a EOFError. The code gets the number of frames by dividing the total number of rows that I have by the number of rows per frame. It then uses the data as pixel data. I was trying to seek a new frame but I guess it hasn't been created. How do I create these frames?</p>
  
  <p>Edit: I would like a .tif file format</p>