} or warn $@;
open my $pgm, '-|', convert => (
- -compress => 'none',
+ $file =>
+ -delete => '1--1',
'+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") {