Browse Source

Simplified EXIF tag extraction in exec/image-info

master
Bert Münnich 11 years ago
parent
commit
0e818020cc
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      Makefile
  2. +1
    -1
      exec/image-info

+ 1
- 1
Makefile View File

@@ -1,4 +1,4 @@
VERSION = git-20140102
VERSION = git-20140103

PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man


+ 1
- 1
exec/image-info View File

@@ -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}"


Loading…
Cancel
Save