[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a
Maximiliano Curia
maxy at moszumanska.debian.org
Thu Jul 13 17:39:07 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=3c17cb4
The following commit has been merged in the master branch:
commit 3c17cb4dec9a6e9f98c764ad718e203ab37c92a3
Author: Andreas Huggel <ahuggel at gmx.net>
Date: Wed Dec 12 15:16:29 2007 +0000
Modified fixiso to handle Canon tags as well.
---
src/actions.cpp | 22 +++++++++++++++++++++-
src/exiv2.1 | 19 ++++++++++++++-----
2 files changed, 35 insertions(+), 6 deletions(-)
diff --git a/src/actions.cpp b/src/actions.cpp
index 093b97f..28bdff1 100644
--- a/src/actions.cpp
+++ b/src/actions.cpp
@@ -1532,8 +1532,18 @@ namespace Action {
<< ": " << _("No Exif data found in the file
");
return -3;
}
- Exiv2::ExifKey key("Exif.Nikon3.ISOSpeed");
+ // Check if the standard tag exists
+ Exiv2::ExifKey key("Exif.Photo.ISOSpeedRatings");
Exiv2::ExifData::iterator md = exifData.findKey(key);
+ if (md != exifData.end()) {
+ if (Params::instance().verbose_) {
+ std::cout << _("Standard Exif ISO tag exists; not modified
");
+ }
+ return 0;
+ }
+ // Fix Nikon ISO setting
+ key = Exiv2::ExifKey("Exif.Nikon3.ISOSpeed");
+ md = exifData.findKey(key);
if (md == exifData.end()) {
key = Exiv2::ExifKey("Exif.Nikon2.ISOSpeed");
md = exifData.findKey(key);
@@ -1542,6 +1552,16 @@ namespace Action {
key = Exiv2::ExifKey("Exif.Nikon1.ISOSpeed");
md = exifData.findKey(key);
}
+ // Canon has a similar bad habit, fix that too
+ if (md == exifData.end()) {
+ key = Exiv2::ExifKey("Exif.CanonSi.ISOSpeed");
+ md = exifData.findKey(key);
+ }
+ if (md == exifData.end()) {
+ key = Exiv2::ExifKey("Exif.CanonCs.ISOSpeed");
+ md = exifData.findKey(key);
+ }
+ // Copy the proprietary tag to the standard place
if (md != exifData.end()) {
std::ostringstream os;
os << *md;
diff --git a/src/exiv2.1 b/src/exiv2.1
index bbdd226..ec09e0e 100644
--- a/src/exiv2.1
+++ b/src/exiv2.1
@@ -3,7 +3,7 @@
.\" First parameter, NAME, should be all caps
.\" Second parameter, SECTION, should be 1-8, maybe w/ subsection
.\" other parameters are allowed: see man(7), man(1)
-.TH EXIV2 1 "November 1st, 2007"
+.TH EXIV2 1 "December 12th, 2007"
.\" Please adjust this date whenever revising the manpage.
.\"
.\" Some roff macros, for reference:
@@ -73,9 +73,10 @@ filename format can be set with
B\-r
P
Ifmt
P, timestamp options
are
B\-t
P and
B\-T
P.
.TP
.B fi | fixiso
-Copy the ISO setting from any of the proprietary Nikon makernote ISO
-tags to the regular Exif ISO tag, Exif.Photo.ISOSpeedRatings. Overwrites
-an existing Exif ISO tag.
+Copy the ISO setting from one of the proprietary Nikon or Canon
+makernote ISO tags to the regular Exif ISO tag,
+Exif.Photo.ISOSpeedRatings. Does not overwrite an existing standard
+Exif ISO tag.
.SH OPTIONS
.TP
.B \-h
@@ -303,6 +304,14 @@ that for IPTC
BTime
P values is HH:MM:SS+|\-HH:MM, where HH:MM:SS
refers to local hour, minute and seconds and +|\-HH:MM refers to hours
and minutes ahead or behind Universal Coordinated Time (+|\- means
either a + or a \- sign is required).
+.sp 1
+The format of XMP
BLangAlt
P values includes an optional language
+qualifier:
+.sp 1
+.B [lang=
Ilanguage-code
P ]
Itext
P
+.sp 1
+.B x-default
+is used by default if the value doesn't start with a language qualifier.
.TP
An additional command is available to register XMP namespaces:
.TP
@@ -363,7 +372,7 @@ make sense in the target image.
.SH SEE ALSO
.TP
.I http://www.exiv2.org/sample.html#modify
-Sample command file.
+Sample command files.
.TP
.I http://www.exiv2.org/metadata.html
Taglists with
Ikey
P and default
Itype
P values.
--
exiv2 packaging
More information about the pkg-kde-commits
mailing list