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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pygifdec-0.0.2.tar.gz.
File metadata
- Download URL: pygifdec-0.0.2.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 |
896ea47ff88ad2c850b8a5da9b6a877b3ba3d97148796abceca94b4c9bceeaa8
|
|
| MD5 |
614f69257f0d79968077283a86813a9a
|
|
| BLAKE2b-256 |
c0cfd6354f5c5990f4b5b31099574acc102b67957047b112d08b0b8fc23a9e68
|
File details
Details for the file pygifdec-0.0.2-cp310-cp310-macosx_10_9_universal2.whl.
File metadata
- Download URL: pygifdec-0.0.2-cp310-cp310-macosx_10_9_universal2.whl
- Upload date:
- Size: 16.3 kB
- Tags: CPython 3.10, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0b97abca6030d3564c782500386979779bb34e65c5695098175d090a9c65e09
|
|
| MD5 |
b925fde578b2fee96cd6b7896cebeb62
|
|
| BLAKE2b-256 |
255b92e9e7dcdd1f29e9a7af11ceeae417f7f3ac8e6029840cf67a1e62b03f18
|