From: Mischa POSLAWSKY Date: Sun, 9 Feb 2020 16:00:19 +0000 (+0100) Subject: resolution option, adjusted to 16:9 aspect X-Git-Url: http://git.shiar.nl/minime.git/commitdiff_plain/8427205fb250c3a916c6a216aae9a3792d6620ad?hp=13b01312659f88bc4de22d31fd0f6920608cf347;ds=sidebyside resolution option, adjusted to 16:9 aspect Assuming unifont or similar appearance. --- 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 $/;