7 releases

0.1.7 May 6, 2021
0.1.6 Nov 7, 2020
0.1.5 Oct 17, 2020
0.1.4 Aug 18, 2020

#2201 in Command line utilities

25 downloads per month

MIT/Apache

1.5MB
779 lines

  • retrieve a gif using tenor and/or giphy apis
  • transform the gif into an "ascii gif"
  • display the gif on the command line
  • enjoy!

How to install

cargo install ascii-gif

Examples

# retrieve a gif using tenor random api and querying "pikachu"
asci-gif --query "pikachu" --tenor

# retrieve a gif using tenor random api and querying "pikachu"
asci-gif --query "pikachu" --giphy

# retrieve the gif with id 15452657 using tenor api
asci-gif --id "15452657" --tenor

# retrieve the gif with id U2nN0ridM4lXy using giphy api
asci-gif --id "U2nN0ridM4lXy" --giphy

Ascii encoding

The ascii encoding can be performed using 10 or 70 characters. The default encoding uses 10 characters. It is possible to use 70 characters encoding using the --encoding parameter

asci-gif --id "U2nN0ridM4lXy" --giphy --encoding 70

Still a "work in progress" project


todos

  • enhance ascii transformation (choose better characters / enrich characters)
  • turn code into better rust

Dependencies

~10–22MB
~304K SLoC