reduce default image size
authorMischa POSLAWSKY <perl@shiar.org>
Mon, 10 Feb 2020 03:38:48 +0000 (04:38 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Mon, 10 Feb 2020 03:38:48 +0000 (04:38 +0100)
Mostly hopeless for recognisability, so prefer simplicity in diffs.

termimg

diff --git a/termimg b/termimg
index b7fa9340fb6ac20d49c7180721f99d02ba7b7c81..7eccb49ba61e8bc592967ac935664e2abf4eea0b 100755 (executable)
--- a/termimg
+++ b/termimg
@@ -49,14 +49,14 @@ eval {
 open my $pgm, '-|', convert => (
        -compress => 'none',
        '+distort' => SRT => '0,0 1,.56 0',
-       -thumbnail => $size || '66x23',
+       -thumbnail => $size || '40x12',
        $file => 'pgm:-'
 ) or die $!;
 
 if (<$pgm> eq "P2\n") {
        my ($width, $height) = split ' ', <$pgm>;
        <$pgm>;  # ignore depth
-       my @ch = split //, " .:coO@";
+       my @ch = split //, " .:oO@";
        while (<$pgm>) {
                print $ch[ $_ * @ch >> 8 ] for /\d+/g;
                print ' ', shift @info if @info;