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.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

gif2ascii-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file gif2ascii-0.1.2.tar.gz.

File metadata

  • Download URL: gif2ascii-0.1.2.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for gif2ascii-0.1.2.tar.gz
Algorithm Hash digest
SHA256 690fe2684830504c91765723abce6166e7fe8af2a69d7df2da094e2e5df5c113
MD5 f2498922dce4a88484e36ce33a38d2fc
BLAKE2b-256 88c2499efc9dde6f3f2c0688ced896112fd04ffd23c3c57558c0d505ce613e4d

See more details on using hashes here.

File details

Details for the file gif2ascii-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: gif2ascii-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for gif2ascii-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c8b1b687fd92c31fbd876c36bb45ee79eaf72643574fe39a1e311fe71df4dc48
MD5 ac61f630269e8819a2760cf7059ee7f3
BLAKE2b-256 74b7172994b02ec85da61347f361f143527f1339de73ef311255dc54ace7df83

See more details on using hashes here.

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