From 0e818020cc3459dda528993e27202c8ef5dfa90f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bert=20M=C3=BCnnich?= Date: Fri, 3 Jan 2014 16:24:07 +0100 Subject: Simplified EXIF tag extraction in exec/image-info --- Makefile | 2 +- exec/image-info | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cf611c3..caf8bc7 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION = git-20140102 +VERSION = git-20140103 PREFIX = /usr/local MANPREFIX = $(PREFIX)/share/man 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}" -- cgit v1.2.3