git.shiar.nl
/
minime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
exclude metadata from file storage system
[minime.git]
/
termimg
diff --git
a/termimg
b/termimg
index baf6afd0a0cbfaf0087a8135b3e575709747e83f..24f6a33613a6048d84af5cff5bdf996f97a4923f 100755
(executable)
--- a/
termimg
+++ b/
termimg
@@
-6,6
+6,8
@@
my @info = eval {
require Image::ExifTool;
my $exif = Image::ExifTool->new->ImageInfo($file, {
CoordFormat => '%.5f',
require Image::ExifTool;
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 (
});
die "exiftool: $exif->{Error}\n" if $exif->{Error};
return (
@@
-18,9
+20,10
@@
my @info = eval {
$exif->{SVGVersion} // $exif->{PDFVersion} // (),
),
$exif->{ColorType} ? "$exif->{BitDepth}bpp $exif->{ColorType}" : (),
$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->{Thumb} ? "thumb $exif->{ThumbnailLength}B" : (),
(map "@ $_",
+ $exif->{DateTimeOriginal} //
$exif->{DateCreated} //
$exif->{CircaDateCreated} //
$exif->{ModifyDate} //
$exif->{DateCreated} //
$exif->{CircaDateCreated} //
$exif->{ModifyDate} //