[Digikam-devel] [Bug 142564] digiKam-signature in iptc and exif tags
Gilles Caulier
caulier.gilles at gmail.com
Sun Mar 11 10:29:57 GMT 2007
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=142564
caulier.gilles gmail com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From caulier.gilles gmail com 2007-03-11 11:29 -------
SVN commit 641435 by cgilles:
libkexiv2 from trunk : set the Exif.Image.Software tag only if it doesn't exist.
BUG: 142564
M +16 -4 kexiv2.cpp
--- trunk/extragear/libs/libkexiv2/kexiv2.cpp #641434:641435
@ -450,10 +450,22 @
{
try
{
- QString software(program);
- software.append("-");
- software.append(version);
- d->exifMetadata["Exif.Image.Software"] = software.ascii();
+ // Check if Exif.Image.Software already exist. If yes, do not touch this tag.
+
+ if (!d->exifMetadata.empty())
+ {
+ Exiv2::ExifData exifData(d->exifMetadata);
+ Exiv2::ExifKey key("Exif.Image.Software");
+ Exiv2::ExifData::iterator it = exifData.findKey(key);
+
+ if (it == exifData.end())
+ {
+ QString software(program);
+ software.append("-");
+ software.append(version);
+ d->exifMetadata["Exif.Image.Software"] = software.ascii();
+ }
+ }
d->iptcMetadata["Iptc.Application2.Program"] = program.ascii();
d->iptcMetadata["Iptc.Application2.ProgramVersion"] = version.ascii();
More information about the Digikam-devel
mailing list