Skip to content

Instantly share code, notes, and snippets.

@dahlia
Created December 24, 2012 00:52
Show Gist options
  • Save dahlia/4366932 to your computer and use it in GitHub Desktop.
Save dahlia/4366932 to your computer and use it in GitHub Desktop.
from wand.image import Image
with Image(file=file) as img:
x = 275
y = 275
img.resize(x, y)
with open('path/filename_already_exists.png', 'wb') as f:
img.save(file=f)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment