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.3.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for gif2ascii-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ddbaf720c18b0b8f2d101650e22709b7d17be04f555553255ef2c6944354448 |
|
MD5 | 85569071f7050901edfe8414f08fc803 |
|
BLAKE2b-256 | 6fe8454e0acbe3f98a85686f6a498657bcd8adc2c6e2f3a1eb88d4ce2714f7f7 |