aboutsummaryrefslogtreecommitdiff
path: root/exec/image-info
diff options
context:
space:
mode:
authorBert Münnich <ber.t@posteo.de>2014-01-03 16:24:07 +0100
committerBert Münnich <ber.t@posteo.de>2014-01-03 16:24:07 +0100
commit0e818020cc3459dda528993e27202c8ef5dfa90f (patch)
tree1dd5953b9982c087e8d567549abe7a1105638a2b /exec/image-info
parentf2e0c492bd784a3a927550187e21cfbc6bbb0939 (diff)
Simplified EXIF tag extraction in exec/image-info
Diffstat (limited to 'exec/image-info')
-rw-r--r--exec/image-info2
1 files changed, 1 insertions, 1 deletions
diff --git a/exec/image-info b/exec/image-info
index 7814c2d..6eebe42 100644
--- a/exec/image-info
+++ b/exec/image-info
@@ -12,7 +12,7 @@ filesize=$(du -Hh "$1" | cut -f 1)
geometry=$(identify -format '%wx%h' "$1[0]")
-tags=$(exiv2 -q pr -pi "$1" | awk '$1~"Keywords" { printf("%s,", $4); }')
+tags=$(exiv2 -q -P v -g "Iptc.Application2.Keywords" "$1" | tr '\n' ',')
tags=${tags%,}
echo "${filesize}${s}${geometry}${tags:+$s}${tags}${s}${filename}"