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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier
SVN commit 524250 by cgilles:

digikam from trunk : DMetadata improvements:

- Get image comments method can search text comments in image using 3 different ways : standard comments (like JPEG COM), or Exif comments, or IPTC comments.

- Get image date & time method can search datetime stamp in image using 2 different ways : Exif datatime tags, or IPTC datetime tag.

CCMAIL: [hidden email]

 M  +171 -73   dmetadata.cpp  
 M  +7 -4      dmetadata.h  


_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Bugzilla from ach@mpe.mpg.de
On Thursday 30 March 2006 12:53, Gilles Caulier wrote:

> SVN commit 524348 by cgilles:
>
> ascii -> latin1
>
>  M  +1 -1      dmetadata.cpp  
>
>
> --- trunk/extragear/graphics/digikam/libs/dmetadata/dmetadata.cpp #524347:524348
> @@ -555,7 +555,7 @@
>          // In Third we write comments into Iptc.
>  
>          Exiv2::IptcData &iptcData = image->iptcData();
> -        iptcData["Iptc.Application2.Caption"] = comment.ascii();
> +        iptcData["Iptc.Application2.Caption"] = comment.latin1();

I assume all non-european people will not be happy about this.
Is there any reason why we can't use UTF-8?  Or at least store
somewhere which 8bit charset is use?   8 bit char sets are a mess
and should be avoided whereever possible.

Achim
>          image->setIptcData(iptcData);
>      
>          image->writeMetadata();
>

--
  To me vi is Zen.  To use vi is to practice zen. Every command is
  a koan. Profound to the user, unintelligible to the uninitiated.
  You discover truth everytime you use it.
                                      -- [hidden email]
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

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

Gilles Caulier-2
Le Vendredi 31 Mars 2006 11:24, Achim Bohnet a écrit :

> On Thursday 30 March 2006 12:53, Gilles Caulier wrote:
> > SVN commit 524348 by cgilles:
> >
> > ascii -> latin1
> >
> >  M  +1 -1      dmetadata.cpp
> >
> >
> > --- trunk/extragear/graphics/digikam/libs/dmetadata/dmetadata.cpp
> > #524347:524348 @@ -555,7 +555,7 @@
> >          // In Third we write comments into Iptc.
> >
> >          Exiv2::IptcData &iptcData = image->iptcData();
> > -        iptcData["Iptc.Application2.Caption"] = comment.ascii();
> > +        iptcData["Iptc.Application2.Caption"] = comment.latin1();
>
> I assume all non-european people will not be happy about this.
> Is there any reason why we can't use UTF-8?  Or at least store
> somewhere which 8bit charset is use?   8 bit char sets are a mess
> and should be avoided whereever possible.
>

This is a main problem with IPTC. It doesn't support UTF8 ! Alternative is XMP
metadata.

Gilles
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel