chafa is a tool that gives reasonable approximations of
pictures and animations in the comfort of your favorite
terminal emulator.

libavif,libheif and libjxl are optional dependencies, if
present it will support these formats as well.
