Skip to content

Instantly share code, notes, and snippets.

@mygeekdaddy
Created April 8, 2014 17:46
Show Gist options
  • Save mygeekdaddy/10161963 to your computer and use it in GitHub Desktop.
Save mygeekdaddy/10161963 to your computer and use it in GitHub Desktop.
ImageResize
import photos
import Image
choose = photos.pick_image()
final = choose.resize((800,600),Image.ANTIALIAS)
saveit = photos.save_image(final)
if saveit is True:
print 'Resized image has been saved'
elif saveit is False:
print "Uh oh, not saved"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment