Bug 136062 - Charset problem saving EXIF comments (JPEG files)
Summary: Charset problem saving EXIF comments (JPEG files)
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Exif (show other bugs)
Version: 0.9.0
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-21 00:10 UTC by Valerio Fuoglio
Modified: 2017-08-13 10:20 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.9.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Valerio Fuoglio 2006-10-21 00:10:01 UTC
Version:           0.9.0-beta2 (using KDE KDE 3.5.5)
Installed from:    Gentoo Packages
Compiler:          gcc version 4.1.1 (Gentoo 4.1.1-r1) 
OS:                Linux

Digikam saves erroneously some characters in JPEG comments.

----------------------------------------------------------
Examples:

Comments inserted with digikam:
-Digikam comments: "Questa è una prova di commento"
-Exiv comments: "Questa Ú una prova di commento"
Character "è" will be saved as "Ú".

Comments inserted exiv2 (exiv2 -c "my comments" myfile.jpg)
-Exiv comments: "Prova é à ù è ì @ ò"
-Digikam comments: ""
-----------------------------------------------------------

Other problem: comments inserted by exiv2 (or another image manager) will not be shown in digikam.(should I submit a new bug?)
Comment 1 Marcel Wiesweg 2006-10-21 16:18:59 UTC
Here are two different issues.
First: UTF8. The image comment (JFIF comment) is saved as UTF8, and UTF8 saves non-ASCII characters in two bytes.

Second: Reading comments to the database. This is only done after importing the image for the first time. After that, the comment is read from the database.
Is that what you mean?

See http://mail.kde.org/pipermail/digikam-users/2006-October/002116.html for information on how digikam handles the various possibilities to store the comment in an image.
Comment 2 Valerio Fuoglio 2006-10-21 17:02:42 UTC
First: OK

Second: You mean that, if I edit exiv tags with another images manager, those images needs to be re-imported in digikam?

Thanks for the link, I'll take a look ASAP.
Comment 3 caulier.gilles 2006-12-12 13:59:03 UTC
Valerio,

Please give me fresh feedback about this report, epecially using current digiKam implementation from svn. Thanks in advance

Gilles
Comment 4 Valerio Fuoglio 2006-12-12 17:08:59 UTC
Hi Gilles, I've made these tests with SVN (trunk) digikam:

Save comments in digikam --> read with exiv from command line --> No problem

Save comments from command line (exiv2) --> read with digikam --> No change made. (Digikam doesn't update its database)

Is it the expected behaviour?
Comment 5 caulier.gilles 2006-12-12 21:06:55 UTC
Valerio,

Yes it's normal because something is missing in digiKam core about this problem. There is another file in B.K.O about it...

But the problem of this file is charset. It look fine. Right ?

Gilles
Comment 6 Valerio Fuoglio 2006-12-12 22:08:46 UTC
Fine :)

Valerio
Comment 7 caulier.gilles 2006-12-12 22:14:29 UTC
ok. thanks closed.

Gilles