To convert an image to ASCII art, use jp2a
. I found that using the Docker image was the most portable way to do this, especially as it doesn't require you to build the binary manually.
docker run -t --rm -v "$(pwd)":/app talinx/jp2a file.ext --color-depth=4 --width=35
docker run
tells docker to run an application.