title: Python Image Library - Create and paste image
body: <p>How do I create a new image with a black background and paste another image on top of it?</p>
  
  <p>What I am looking to do is turn some 128x128 transparent icons into 75x75 black background icons.  </p>
  
  <p>Doesnt work ...</p>
  
  <pre>import Image
  
  theFile = "/home/xxxxxx/Pictures/xxxxxx_128.png"
  
  img = Image.open(theFile)
  
  newImage = Image.new(img.mode, img.size, "black")
  newImage.paste(img)
  newImage.resize((75,75))
  newImage.save("out.png")
  
  print "Done"</pre>
  
  <p>Thanks!</p>