[Digikam-devel] Re: extragear/graphics/digikam/libs/dmetadata

Gilles Caulier caulier.gilles at gmail.com
Thu Sep 30 21:54:35 BST 2010


yes and no. because extracting is not enough. sometimes, we need to
adapt rules to select right tags from metadata, accordingly of camera
device make and model (as ex. the order)

This is not simple problem to deal.

Gilles

2010/9/30 Johannes Wienke <languitar at semipol.de>:
> Hey,
>
> just a remark from a developer with no time left for digiKam. ;) We
> should really think about extracting these exif tag rules in an external
> file that is parsed at runtime. This is configuration knowledge that
> should be easily changeable without recompiling digikam.
>
> Regards,
> Johannes
>
> Am 30.09.2010 16:03 schrieb Gilles Caulier:
>> SVN commit 1181246 by cgilles:
>>
>> improve lens detection. add Sony id tag.
>>
>>
>>  M  +2 -1      dmetadata.cpp
>>
>>
>> --- trunk/extragear/graphics/digikam/libs/dmetadata/dmetadata.cpp #1181245:1181246
>> @@ -971,6 +971,7 @@
>>      lensExifTags.append("Exif.NikonLd2.LensIDNumber"); // Nikon Cameras Makernote.
>>      lensExifTags.append("Exif.NikonLd3.LensIDNumber"); // Nikon Cameras Makernote.
>>      lensExifTags.append("Exif.Minolta.LensID");        // Minolta Cameras Makernote.
>> +    lensExifTags.append("Exif.Sony1.LensID");          // Sony Cameras Makernote.
>>      lensExifTags.append("Exif.Sony2.LensID");          // Sony Cameras Makernote.
>>      lensExifTags.append("Exif.Pentax.LensType");       // Pentax Cameras Makernote.
>>      lensExifTags.append("Exif.Panasonic.0x0051");      // Panasonic Cameras Makernote.
>> @@ -992,7 +993,7 @@
>>      {
>>          lens = getExifTagString((*it).toAscii());
>>          if ( !lens.isEmpty() &&
>> -             !lens.startsWith('(') && !lens.endsWith(')') )   // To prevent undecoded tag values from Exiv2 as "(65535)".
>> +             !(lens.startsWith('(') && lens.endsWith(')')) )   // To prevent undecoded tag values from Exiv2 as "(65535)".
>>              return lens;
>>      }
>>
>
>
>
> _______________________________________________
> Digikam-devel mailing list
> Digikam-devel at kde.org
> https://mail.kde.org/mailman/listinfo/digikam-devel
>
>



More information about the Digikam-devel mailing list