From: Mischa POSLAWSKY Date: Sun, 9 Feb 2020 21:14:18 +0000 (+0100) Subject: select exif metadata X-Git-Url: http://git.shiar.nl/minime.git/commitdiff_plain/3e20200725af5c17b5db24c72840a73c8e1d5a57?ds=sidebyside select exif metadata --- diff --git a/termimg b/termimg index bec4a4b..4270464 100755 --- a/termimg +++ b/termimg @@ -8,7 +8,32 @@ my @info = eval { return ( " $exif->{MIMEType}", $exif->{ImageSize} ? " $exif->{ImageSize} ($exif->{Megapixels}MP)" : (), + join(' ', '', + $exif->{YCbCrSubSampling} // (), + $exif->{Interlace} // (), + $exif->{Compression} // $exif->{FileType}, + $exif->{SVGVersion} // $exif->{PDFVersion} // (), + ), $exif->{ColorType} ? " $exif->{BitDepth}bpp $exif->{ColorType}" : (), + sprintf(' exif x%d', scalar %{$exif}), + $exif->{Thumb} ? " thumb $exif->{ThumbnailLength}B" : (), + (map " @ $_", + $exif->{DateCreated} // + $exif->{CircaDateCreated} // + $exif->{ModifyDate} // + $exif->{ZipModifyDate} // + (), + ), + $exif->{GPSPosition} ? " $exif->{GPSPosition}" =~ s/ deg/./gr : + $exif->{Location} ? " $exif->{Location}" : (), + $exif->{GPSAltitude} ? " $exif->{GPSAltitude}" : (), + (map " hw $_", join(' ', + $exif->{Make} // (), $exif->{Model} // (), + $exif->{FOV} ? "(FOV $exif->{FOV})" : (), + ) || ()), + (map " sw $_", $exif->{Software} // $exif->{Application} // ()), + (map " > $_", $exif->{'Description-nl'} // ()), + $exif->{Warning} ? " ! $exif->{Warning}" : (), ); } or warn $@;