From b5867f622972e82f7a01a06701e0334cef1d19f9 Mon Sep 17 00:00:00 2001 From: Thomas Koehler Date: Fri, 23 Oct 2009 10:42:39 +0200 Subject: [PATCH] Bugfix: identify's changed output format no longer usable --- usr_bin/exifinfo | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/usr_bin/exifinfo b/usr_bin/exifinfo index a470c21..91a7e90 100755 --- a/usr_bin/exifinfo +++ b/usr_bin/exifinfo @@ -1,4 +1,4 @@ -: +#!/bin/sh ########################################################################## # Title : exifinfo - print EXIF information of an image file # Author : Heiner Steven @@ -117,6 +117,7 @@ for file do # Explanation of the "sed" expressions: # o remove all lines not containing a "=" + # o remove "exif:" prefix from identify # o remove all lines containing tag names that would form invalid # shell variable names # o quote all apostrophy characters ' as '\'' @@ -127,6 +128,7 @@ do identify -format "%[EXIF:$info]" "$file" | sed \ -e '/^[^=]*$/d' \ + -e 's/^exif://' \ -e '/[^A-Za-z0-9_=][^=]*=/d' \ -e "s/'/'\\\\''/g" \ -e "s/=/='/" \ -- 2.1.4