X-Git-Url: http://git.shiar.nl/minime.git/blobdiff_plain/13b01312659f88bc4de22d31fd0f6920608cf347..8427205fb250c3a916c6a216aae9a3792d6620ad:/termimg?ds=sidebyside 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 $/;