Bug 329391 - digiKam creates 'Document Name' metadata with unreadable characters (encoding problem of accents)
Summary: digiKam creates 'Document Name' metadata with unreadable characters (encoding...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Engine (show other bugs)
Version: 3.5.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-29 22:59 UTC by Nicofo
Modified: 2017-10-12 06:02 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.8.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicofo 2013-12-29 22:59:30 UTC
When digikam rotates a picture, it adds the 'Document Name' EXIF metadata among other.
1) Why ? This doesn't really annoy me be I have just asked to rotate the picture...
2) The value of this tag is the file's name. But if the file's name contains accents, they are not correctly displayed by digikam (or other software like gwenview, exiftool, jhead, ...)

Example: picture's name= forêt_érable.jpg
 -> DocumentName = for�t_�rable.jpg

Reproducible: Always

Steps to Reproduce:
1. rename a picture with accents
2. rotate it with digikam
3. see the result in the "DocumentName" tag
Comment 1 caulier.gilles 2013-12-30 22:51:47 UTC
Can you share a sample image to test here ?

Gilles Caulier
Comment 2 caulier.gilles 2013-12-30 22:59:49 UTC
This behavior sound like normal. Look Exiv2 documentation about Tag :

http://www.exiv2.org/tags.html

0x010d	269	Image	Exif.Image.DocumentName	Ascii	The name of the document from which this image was scanned

Exif tag DocumentName only support ASCII...

The alternative to this problem is to put filename into XMP as well, but exif XMP schemas do not contain DocumentName.

The solution can be to use digiKam XMP namespace.

Gilles Caulier
Comment 3 Nicofo 2013-12-31 09:58:29 UTC
(In reply to comment #1)
> Can you share a sample image to test here ?
> 
> Gilles Caulier
See an example here: nicofo.tuxfamily.org/tmp/Example_accent.jpg
Comment 4 caulier.gilles 2013-12-31 10:03:45 UTC
yes reproducible, but nit solvable as well using Exif. XMP need to be used instead. See my comment #2. Any suggestions are welcome about XMP namespace to use...
Comment 5 caulier.gilles 2014-08-28 16:14:58 UTC
Andreas,

Xmp.Exif.DocumentName tag do not exists in standard XMP namespace.

There is another tags from XMP which can replace Exif.Image.DocumentName ?

Gilles Caulier
Comment 6 Barbara Scheffner 2016-09-13 19:08:14 UTC
It seems to me that here happened a misunderstanding.

I just checked the bug and it is still like Nicofo described it. But I think the "unreadable characters" are not really the problem. Probably there is no solution for that anyway due to the fact that this field can take only standard ASCII caracters.

But the important question is Nicofo's first one: why is this happening anyway? He wrote "This doesn't really annoy me ..." but was obviously meaning "This does really annoy me because I have just asked to rotate the picture...".

Beside the fact that putting the filename into this field has nothing to do with rotating the picture it also doesn't fit to the definition of this field. In the "Display" tab of the metadata section of the digiKam settings you find for DocumentName: "The name of the document from which this image was scanned". Has nothing to do with rotation IMHO.

So the solution could be "simply" to delete this action from the code.
Comment 7 Maik Qualmann 2017-10-12 05:50:37 UTC
I see it like Wolfgang. When the image is rotated, the DocumentName should not be updated. I will remove this code.

Maik
Comment 8 Maik Qualmann 2017-10-12 06:02:48 UTC
Git commit f334e120537866f34e507fa0079a28cd091ca022 by Maik Qualmann.
Committed on 12/10/2017 at 06:01.
Pushed by mqualmann into branch 'master'.

do not update Exif.Image.DocumentName when the image is rotated
FIXED-IN: 5.8.0

M  +2    -2    NEWS
M  +1    -4    libs/jpegutils/jpegutils.cpp

https://commits.kde.org/digikam/f334e120537866f34e507fa0079a28cd091ca022