Krolyxon
Commit 0e81802

Branches

Refs →

nsxiv0e81802

Simplified EXIF tag extraction in exec/image-info

Author
Bert Münnich
Date
2014-01-03 16:24 +0100
Parent
f2e0c49
Commit
0e818020cc3459dda528993e27202c8ef5dfa90f

+2 −2

2 files changed

  1. M Makefile +1 −1
  2. M exec/image-info +1 −1
M Makefile View
@@ -1,4 +1,4 @@
1−VERSION = git-20140102
1+VERSION = git-20140103
22
33 PREFIX = /usr/local
44 MANPREFIX = $(PREFIX)/share/man
M exec/image-info View
@@ -12,7 +12,7 @@ filesize=$(du -Hh "$1" | cut -f 1)
1212
1313 geometry=$(identify -format '%wx%h' "$1[0]")
1414
15−tags=$(exiv2 -q pr -pi "$1" | awk '$1~"Keywords" { printf("%s,", $4); }')
15+tags=$(exiv2 -q -P v -g "Iptc.Application2.Keywords" "$1" | tr '\n' ',')
1616 tags=${tags%,}
1717
1818 echo "${filesize}${s}${geometry}${tags:+$s}${tags}${s}${filename}"