Art

gif-for-cli – convert media to animated ASCII art

gif-for-cli is an open source utility that converts gifs and mp4 files to animated ASCII art. It takes the chosen .gif file (file, url, or Tenor query) and uses ffmpeg to split the animated gif or short video into static jpg frames. Those jpg frames are then converted to ASCII art. The program then prints one frame at a time to the console, clearing the console using ANSI escape sequences between each frame.

The utility supports querying the Tenor GIF API.

It requires Python 3 (with setuptools and pip), zlib, libjpeg and ffmpeg.

Key Features

  • Query Tenor’s GIF API – Tenor is the API that delivers the relevant GIFs for any application.
  • Override display mode.
  • Change the maximum height and width.
  • Loop the animation indefinitely or set the number of times to repeat the animation.
  • Export and share the generated ASCII art.
  • Animation and color support are performed using ANSI escape sequences.
  • Skip displaying ASCII in the terminal; this is designed for pre-caching output.
  • Input source can be a filename, url, or a query to the Tenor GIF API.

Website: github.com/google/gif-for-cli
Support: Google Blog
Developer: Google (not officially supported software)
License: Apache License 2.0

gif-for-cli

gif-for-cli is written in Python. Learn Python with our recommended free books and free tutorials.


Related Software

ASCII Art Tools
gif-for-cliConvert media to animated ASCII art
ASCIIQuariumEmbrace marine life from the terminal with beautiful ASCII art
CalligraphyConverts short texts into large, imposing banners
CMatrixTerminal based “The Matrix”
DiagonTransforms markdown-style expression into an ascii-art representation
AewanAscii-art Editor Without a Name
Steam LocomotiveC program written in 295 lines. It's harmless fun
boxesASCII box drawing
DurdrawASCII, Unicode and ANSI art editor
FIGletMake large letters out of ordinary screen characters
pipes.shAnimated pipes terminal screensaver
jp2aConvert JPEG images to ASCII
asciifyTurn images into attractive ASCII art
lolcatRainbows and unicorns
ArtemConvert images to ASCII art
TOIletSimilar in many ways to FIGlet with additional features
textdrawDraw geometric figures and text
PyBonsaiGenerates procedural ASCII art trees
No More SecretsRecreates the data decryption effect seen in the 1992 film Sneakers
LetterpressConverts your images into a picture made up of ASCII characters
ASCII Art ConverterConverts images into ASCII art
cbonsaiGenerate bonsai trees
cadubiCreative ASCII drawing utility
cacafireColor ASCII Fire
cowsayGenerates ASCII pictures of a cow with a message in a speech bubble
MezzotoneConvert images into ASCII art
img2asciiCommand-line tool for converting images to ASCII art
gtiTypo-based curio inspired by Steam Locomotive
ctreeChristmas tree on your terminal
ASCII DrawSketch anything using characters
catspeakLike cowsay but catty

Read our verdict in the software roundup.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
1 Comment
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
DihanJubayer
6 years ago

looks like this work is on computercraft