my $exif = Image::ExifTool->new->ImageInfo($file, {
CoordFormat => '%.5f',
DateFormat => '%Y-%m-%d %H:%M:%S',
+ Exclude => 'System:*',
});
die "exiftool: $exif->{Error}\n" if $exif->{Error};
return (
$exif->{SVGVersion} // $exif->{PDFVersion} // (),
),
$exif->{ColorType} ? "$exif->{BitDepth}bpp $exif->{ColorType}" : (),
- sprintf('exif x%d', scalar %{$exif}),
+ sprintf('exif (%d)', scalar %{$exif}),
$exif->{Thumb} ? "thumb $exif->{ThumbnailLength}B" : (),
(map "@ $_",
$exif->{DateTimeOriginal} //
-thumbnail => $size || '40x12',
-colorspace => 'gray',
'-normalize',
+ -level => '-1%',
+ -channel => 'A', -threshold => '50%',
-background => 'black',
-layers => 'flatten',
-compress => 'none',
<$pgm>; # ignore depth
my @ch = split //, " .:oO@";
while (<$pgm>) {
- print $ch[ $_ * @ch >> 8 ] for /\d+/g;
+ print !$_ ? '/' : $ch[ $_ * @ch >> 8 ] for /\d+/g;
print ' ', shift @info if @info;
print $/;
}