3 my ($file, $size) = @ARGV;
6 require Image::ExifTool;
7 my $exif = Image::ExifTool->new->ImageInfo($file);
10 $exif->{ImageSize} ? " $exif->{ImageSize} ($exif->{Megapixels}MP)" : (),
11 $exif->{ColorType} ? " $exif->{BitDepth}bpp $exif->{ColorType}" : (),
15 open my $pgm, '-|', convert => (
17 '+distort' => SRT => '0,0 1,.56 0',
18 -thumbnail => $size || '66x23',
21 <$pgm> eq "P2\n" or do {
25 <$pgm>; <$pgm>; # ignore depth, dimensions
27 my @ch = split //, " .:coO@";
29 print $ch[ $_ * @ch >> 8 ] for /\d+/g;
30 print $info[$. - 4], $/;