ascii-gif 0.1.2

Simple cli to enjoy ascii-gif
ascii-gif-0.1.2 is not a library.

Gifs are not trending anymore, but what about ascii gifs?

Alt Text

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

Examples

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

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

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

# retrieve the gif with id U2nN0ridM4lXy using giphy api
cargo run -- --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

cargo run -- --id "U2nN0ridM4lXy" --giphy --encoding 70

Still a "work in progress" project


todos

  • enhance ascii transformation (choose better characters / enrich characters)
  • stop cropping gifs
  • cli arguments enhancement
  • turn code into better rust