a python gifdec wrapper
Project description
pygifdec
a python wrapper for https://github.com/lecram/gifdec
Usage
import pygifdec
gif = pygifdec.open("cube.gif")
shape = (gif.width, gif.height)
print(shape)
pring(gif.size)
frame = bytearray(gif.size)
gif.render_frame(frame)
gif.get_frame()
from PIL import Image
for i in range(10):
ret = gif.get_frame()
if ret < 0:
break
gif.render_frame(frame)
img = Image.frombuffer("RGB", shape, bytes(frame))
img.show()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pygifdec-0.0.2a1.tar.gz
(7.7 kB
view hashes)