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 details)
File details
Details for the file pygifdec-0.0.2a1.tar.gz.
File metadata
- Download URL: pygifdec-0.0.2a1.tar.gz
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c204d819789dc6102a762f6af1f28dac679862a1a079999c816df9a7d89c97b
|
|
| MD5 |
df2caac4e8d207edf087cfb780f1b7bb
|
|
| BLAKE2b-256 |
5ea000bca80578cb94bf2519dd160dca72e5838c02b41cbf66a3cf9206a8bcf3
|