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 = 'jujutsu.gif'
width = 80
GifAscii(file_name, width).output()
Available Options to constructor
usage: python -m gif2ascii [-h] -f F [-w W] [-d D] [-c C] [--fit-terminal] [--no-loop] [--screenfetch]
Gif to Ascii
options:
-h, --help show this help message and exit
-f F Input file, static image or gif file
-w W Width in chars
-d D Frame delay between frames for gif
-c C Characters to be used for ASCII output
--fit-terminal Fit entire terminal
--no-loop Loop gif animation
--screenfetch Create template for screenfetch
Examples:
python -m gif2ascii -f anime.gif -w 80
python -m gif2ascii -f anime.gif --fit-terminal
python -m gif2ascii -f john.jpg -c ABCDEF -d 0.1
Use with screenfetch
echo 'startline=0;fulloutput=($(python -m gif2ascii -f john.jpg -w 40 --screenfetch))' > /tmp/script.sh && screenfetch -E -a /tmp/script.sh
github.com/shobhit99
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.4.tar.gz
(4.2 kB
view hashes)
Built Distribution
Close
Hashes for gif2ascii-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 635e86e200559fe67b92a3ab4441e6a95d70928e9f81a4e0909e706db887af5b |
|
MD5 | ec415493ae34976167d4b06856b95375 |
|
BLAKE2b-256 | 5715c1a11597128b49ec856b1df660a332cf113a38f3da997e28ca5bca5ef679 |