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.2a2.tar.gz
(7.6 kB
view details)
File details
Details for the file pygifdec-0.0.2a2.tar.gz.
File metadata
- Download URL: pygifdec-0.0.2a2.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cbb753aa369c843dfd80baa38db212515ceb6f271f1d7b77531b071401f602c
|
|
| MD5 |
7984b298cb98da8f294fda2e9a4430b0
|
|
| BLAKE2b-256 |
a02fafcf771d629055c72d8ece7138776bccfe7818640e82476c5f35b427003c
|