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.2.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for gif2ascii-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c8b1b687fd92c31fbd876c36bb45ee79eaf72643574fe39a1e311fe71df4dc48 |
|
MD5 | ac61f630269e8819a2760cf7059ee7f3 |
|
BLAKE2b-256 | 74b7172994b02ec85da61347f361f143527f1339de73ef311255dc54ace7df83 |