Gif to ASCII
Project description
gif2ascii
Example using command line
python -m gif2ascii -f anime.gif -w 80
python -m gif2ascii -f anime.gif --fit-terminal
python -m gif2ascii -f hehe.jpg -c ABCDEF -d 0.1
Example using Code
from gif2ascii import GifAscii
file_name = 'test.gif'
width = 80
GifAscii(file_name, width).output()
Available Options to constructor
file_name - Name of the file to convert
-- optional params --
width - width in chars for output
frame_delay - Delay between frames in GIF while rendering to terminal
fit_terminal - Ignores width, takes the entire terminal size
chars - specify chars for ASCII text (fat characters gives better results)
loop_gif - you know what it is :p (ctrl + c to end)
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
gif2ascii-0.1.1.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for gif2ascii-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44b417c4d776b8e1b0324e50cb98f4ad087203b7c928432b84d5ba06cdd3e1f2 |
|
MD5 | ab2615c5369921c9eb38292d0b2dd02f |
|
BLAKE2b-256 | 75f6112206e6348316b3bf5960cd2f6fb6d999f30d972e60ad34d5a8b41a5926 |