delete animation frames and transparency
authorMischa POSLAWSKY <perl@shiar.org>
Fri, 14 Feb 2020 22:24:26 +0000 (23:24 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Fri, 14 Feb 2020 22:24:26 +0000 (23:24 +0100)
termimg

diff --git a/termimg b/termimg
index d51790613d64346bc58439aab97beae6c80a544e..11d436df15546ddc3b4f3f40435bf5760ca9b377 100755 (executable)
--- a/termimg
+++ b/termimg
@@ -49,10 +49,16 @@ eval {
 } or warn $@;
 
 open my $pgm, '-|', convert => (
 } or warn $@;
 
 open my $pgm, '-|', convert => (
-       -compress => 'none',
+       $file =>
+       -delete => '1--1',
        '+distort' => SRT => '0,0 1,.56 0',
        -thumbnail => $size || '40x12',
        '+distort' => SRT => '0,0 1,.56 0',
        -thumbnail => $size || '40x12',
-       $file => 'pgm:-'
+       -colorspace => 'gray',
+       '-normalize',
+       -background => 'black',
+       -layers => 'flatten',
+       -compress => 'none',
+       'pgm:-'
 ) or die $!;
 
 if (<$pgm> eq "P2\n") {
 ) or die $!;
 
 if (<$pgm> eq "P2\n") {