Display images (text representation) in 24 bit color terminals
sample output
- c++17 compiler
- CMake > 3.15
- libvips
- Conan install instructions
- clone repository
git clone https://github.com/jdao55/img-print.git && cd img-print
- Create build directory and Run Cmake
mkdir build && cd build
cmake ../
- Compile program
make -j4
Executable is found in
build/bin/img-print
sample commands for building and runing with docker
sudo docker build -t img-print ./
sudo docker run --mount type=bind, \
source="$(pwd)", \
target=/img_print/mnt, \
readonly \
img-print ./relative_path_to_image
Usage:
img-print [-g] <filename> [--filtertype=<algorithm>]
img-print [-g] <filename> <output-width> [--filtertype=<algorithm>]
img-print [-g] <filename> <output-width> <output-height> [--filtertype=<algorithm>]
img-print [-g] <filename> <output-width> <output-height> <output-character> [--filtertype=<algorithm>]
img-print (-h | --help)
Options:
-h --help Show this screen.
-g --greyscale Output in greyscale
--filtertype=<algorithm> Specify scaling algorithm options are:
lanczos
cubic
quadratic
catrom
sinc
-h --help
Print help message
-g --greyscale
Output in greyscale
Tested with Konsole
test Executable is found in
build/bin/unittest