X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=usr_bin%2Fexifinfo;h=91a7e9028ff647416751418781e42cad9977b6ee;hb=978594a13eb12d6b1718dc165696dc64a6e8bc25;hp=a470c21ea49461247e968b1d6497e669a3fa8bf7;hpb=e720deae78f1eda5e6f62629606c194f16796762;p=grml-scripts.git 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/=/='/" \