Skip to content

Instantly share code, notes, and snippets.

View griffith-xx's full-sized avatar

Griffith griffith-xx

  • Thailand
  • 22:36 (UTC +07:00)
View GitHub Profile
@skywodd
skywodd / resize_gif.py
Created November 3, 2017 12:48
Resize GIF image using Python Pillow library
from PIL import Image, ImageSequence
# Output (max) size
size = 320, 240
# Open source
im = Image.open("in.gif")
# Get sequence iterator
frames = ImageSequence.Iterator(im)