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.2.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for pygifdec-0.0.2-cp310-cp310-macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0b97abca6030d3564c782500386979779bb34e65c5695098175d090a9c65e09 |
|
MD5 | b925fde578b2fee96cd6b7896cebeb62 |
|
BLAKE2b-256 | 255b92e9e7dcdd1f29e9a7af11ceeae417f7f3ac8e6029840cf67a1e62b03f18 |