projects
/
grml-scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3ca709e
)
Bugfix: identify's changed output format no longer usable
author
Thomas Koehler
<jean-luc@picard.franken.de>
Fri, 23 Oct 2009 08:42:39 +0000
(10:42 +0200)
committer
Ulrich Dangel
<uli@spamt.net>
Fri, 23 Oct 2009 10:47:08 +0000
(12:47 +0200)
usr_bin/exifinfo
patch
|
blob
|
history
diff --git
a/usr_bin/exifinfo
b/usr_bin/exifinfo
index
a470c21
..
91a7e90
100755
(executable)
--- 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 <heiner.steven@odn.de>
##########################################################################
# Title : exifinfo - print EXIF information of an image file
# Author : Heiner Steven <heiner.steven@odn.de>
@@
-117,6
+117,7
@@
for file
do
# Explanation of the "sed" expressions:
# o remove all lines not containing a "="
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 '\''
# 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' \
identify -format "%[EXIF:$info]" "$file" |
sed \
-e '/^[^=]*$/d' \
+ -e 's/^exif://' \
-e '/[^A-Za-z0-9_=][^=]*=/d' \
-e "s/'/'\\\\''/g" \
-e "s/=/='/" \
-e '/[^A-Za-z0-9_=][^=]*=/d' \
-e "s/'/'\\\\''/g" \
-e "s/=/='/" \