Skip to content

Instantly share code, notes, and snippets.

@saghul
Created August 20, 2010 07:20
Show Gist options
  • Save saghul/539806 to your computer and use it in GitHub Desktop.
Save saghul/539806 to your computer and use it in GitHub Desktop.
import Image
imageFile = "zFlowers.jpg"
im1 = Image.open(imageFile)
width = 500
height = 420
im2 = im1.resize((width, height), Image.BICUBIC)
im2.save("resized.jpg")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment