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.0.9.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for gif2ascii-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c197b6f31f1e2ee7c53ac6a565dcd09b3f74b2f26d7b622df986a0f3751450c2 |
|
MD5 | cbc6d46194983eeab66ba9c187cc0fbe |
|
BLAKE2b-256 | 0d4cb01e6d3f77209db116b0d4d6172e50d5d22ae46d0b6dde970d24f378a97d |