Skip to main content

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


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)

Uploaded Source

Built Distribution

gif2ascii-0.1.3-py3-none-any.whl (4.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page