From 8427205fb250c3a916c6a216aae9a3792d6620ad Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 9 Feb 2020 17:00:19 +0100 Subject: [PATCH 1/1] resolution option, adjusted to 16:9 aspect Assuming unifont or similar appearance. --- termimg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/termimg b/termimg index 6599b3b..d17805f 100755 --- a/termimg +++ b/termimg @@ -1,10 +1,10 @@ #!/bin/sh -convert -compress none -resize 66x23 - pgm:- | +convert -compress none +distort SRT '0,0 1,.56 0' -thumbnail ${1:-66x23} - pgm:- | perl -e ' <> eq "P2\n" or die "ascii pgm input required\n"; <>; <>; # ignore depth, dimensions -my @ch = split //, " .oO@"; +my @ch = split //, " .:coO@"; while (<>) { print $ch[ $_ * @ch >> 8 ] for /\d+/g; print $/; -- 2.30.0