Skip to content

Instantly share code, notes, and snippets.

@marselester
Created July 18, 2013 14:06
Show Gist options
  • Save marselester/6029595 to your computer and use it in GitHub Desktop.
Save marselester/6029595 to your computer and use it in GitHub Desktop.
Resize animated gif by Wand (ctypes-based simple ImageMagick binding for Python).
# http://docs.wand-py.org
from wand.image import Image
with Image(filename='original.gif') as img:
img.rotate(90)
img.resize(150, 150)
img.save(filename='converted.gif')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment