Bug 429055 - Storing tags to files does not work
Summary: Storing tags to files does not work
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Hub (show other bugs)
Version: 6.4.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-13 11:24 UTC by Marcus Hardt
Modified: 2020-11-19 20:59 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.2.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Hardt 2020-11-13 11:24:06 UTC
SUMMARY


STEPS TO REPRODUCE
1. Go to right sidecar "Captions"
2. Go to tab "Tags"
3. Select a tag
4. Click apply
5. Click "more"->"write tags to each file" (Only works with more than one file selected.
6. Observe file tags with exiftool 

OBSERVED RESULT
No tag added to metadata


EXPECTED RESULT
Tag added to metadata


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: debian/10
(available in About System)
-> I don't have that "About System" in help menu.

KDE Plasma Version: kde-plasma-desktop: not installed
KDE Frameworks Version: Which package?
Qt Version: which package? (Is see qt3 at4 and qt5 on my system.
Comment 1 Maik Qualmann 2020-11-13 11:44:34 UTC
What kind of image is it, JPEG or RAW? Have you activated the writing of metadata for tags in the digikam metadata setup?

Maik
Comment 2 Marcus Hardt 2020-11-13 12:33:01 UTC
I'm using only JPEG.

I have not activated the "if possible write Metadata to RAW files" option. Semt too dangerous.  Shall I do that?
Comment 3 Maik Qualmann 2020-11-13 12:50:17 UTC
You do not need to activate the writing of metadata in RAW files if you are using JPEG. Have you activated writing to tags on the same tab above?

Maik
Comment 4 Marcus Hardt 2020-11-13 12:51:09 UTC
Yep. There I've activated all (but "Face Tags")
Comment 5 Maik Qualmann 2020-11-13 12:56:53 UTC
Ok, run digiKam in a terminal and give us the log when you've written a tag.

Activate debug before:
----------------------------------------
export QT_LOGGING_RULES="digikam*=true"
digikam
----------------------------------------

Maik
Comment 6 Marcus Hardt 2020-11-13 16:21:16 UTC
Wow... this is verbose...

I've cut some stuff away.

QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setCompositionMode: Painter not active
QPainter::end: Painter not active, aborted
digikam.general: No write to baloo +++++++++++++++++++++++++++++++++++++
digikam.general: Writing tags
digikam.general: -------------------------- New Keywords ("Ruby")
digikam.metaengine: "/home/marcus/pix/2020/2008-Hochzeit/Susi-Marcus-Hochzeit/hochzeit_susanne-marcus001.jpg"  ==> New Iptc Keywords:  ("Ruby")
digikam.metaengine: MetaEngine::metadataWritingMode 0
digikam.metaengine: Will write Metadata to file "/home/marcus/pix/2020/2008-Hochzeit/Susi-Marcus-Hochzeit/hochzeit_susanne-marcus001.jpg"
digikam.metaengine: wroteComment:  true
digikam.metaengine: wroteEXIF:  true
digikam.metaengine: wroteIPTC:  true
digikam.metaengine: wroteXMP:  true
digikam.metaengine: Metadata for file "hochzeit_susanne-marcus001.jpg" written to file.
digikam.dimg: "/home/marcus/pix/2020/2008-Hochzeit/Susi-Marcus-Hochzeit/hochzeit_susanne-marcus001.jpg" : "JPEG" file identified
digikam.dimg.jpeg: Start of Image  ( 1 )
digikam.dimg.jpeg: Miscellaneous marker 0xe1, length 16265  ( 1 )
digikam.dimg.jpeg: Miscellaneous marker 0xe1, length 3638  ( 1 )
digikam.dimg.jpeg: Miscellaneous marker 0xe2, length 3158  ( 1 )
digikam.dimg.jpeg: Miscellaneous marker 0xed, length 16170  ( 1 )
digikam.dimg.jpeg: Define Quantization Table 0  precision 0  ( 1 )
digikam.dimg.jpeg: Define Quantization Table 1  precision 0  ( 1 )
digikam.dimg.jpeg: Define Restart Interval 750  ( 1 )
digikam.dimg.jpeg: Adobe APP14 marker: version 100, flags 0xc000 0x0000, transform 1  ( 1 )
digikam.dimg.jpeg: Start Of Frame 0xc0: width=6000, height=4000, components=3  ( 1 )
digikam.dimg.jpeg:     Component 0: 1hx1v q=0  ( 1 )
digikam.dimg.jpeg:     Component 1: 1hx1v q=1  ( 1 )
digikam.dimg.jpeg:     Component 2: 1hx1v q=1  ( 1 )
digikam.dimg.jpeg: Define Huffman Table 0x00  ( 1 )
digikam.dimg.jpeg:           0   2   3   1   1   1   1   1  ( 2 )
digikam.dimg.jpeg:           0   0   0   0   0   0   0   0  ( 2 )
digikam.dimg.jpeg: Define Huffman Table 0x01  ( 1 )
digikam.dimg.jpeg:           1   1   1   1   1   1   1   1  ( 2 )
digikam.dimg.jpeg:           0   0   0   0   0   0   0   0  ( 2 )
digikam.dimg.jpeg: Define Huffman Table 0x10  ( 1 )
digikam.dimg.jpeg:           0   1   3   3   3   3   2   4  ( 2 )
digikam.dimg.jpeg:           4   5   3   2   4   0   1  29  ( 2 )
digikam.dimg.jpeg: Define Huffman Table 0x11  ( 1 )
digikam.dimg.jpeg:           1   1   1   1   1   0   3   0  ( 2 )
digikam.dimg.jpeg:           3   0   2   2   1   0   2  19  ( 2 )
digikam.dimg.jpeg: Start Of Scan: 3 components  ( 1 )
digikam.dimg.jpeg:     Component 0: dc=0 ac=0  ( 1 )
digikam.dimg.jpeg:     Component 1: dc=1 ac=1  ( 1 )
digikam.dimg.jpeg:     Component 2: dc=1 ac=1  ( 1 )
digikam.dimg.jpeg:   Ss=0, Se=63, Ah=0, Al=0  ( 1 )
digikam.database: Scanning took 21 ms
digikam.database: Finishing took 6 ms
digikam.general: Trying to get thumbnail with Exiv2 for "/home/marcus/pix/2020/2008-Hochzeit/Susi-Marcus-Hochzeit/hochzeit_susanne-marcus001.jpg"
digikam.general: Trying to get thumbnail with DImg preview for "/home/marcus/pix/2020/2008-Hochzeit/Susi-Marcus-Hochzeit/hochzeit_susanne-marcus001.jpg"
digikam.general: Trying to get thumbnail with Exiv2 for "/home/marcus/pix/2020/2008-Hochzeit/Susi-Marcus-Hochzeit/hochzeit_susanne-marcus001.jpg"
digikam.general: Trying to get thumbnail with DImg preview for "/home/marcus/pix/2020/2008-Hochzeit/Susi-Marcus-Hochzeit/hochzeit_susanne-marcus001.jpg"
digikam.dimg: "/home/marcus/pix/2020/2008-Hochzeit/Susi-Marcus-Hochzeit/hochzeit_susanne-marcus001.jpg" : "JPEG" file identified
digikam.dimg.jpeg: Start of Image  ( 1 )
digikam.dimg.jpeg: Miscellaneous marker 0xe1, length 16265  ( 1 )
digikam.dimg: "/home/marcus/pix/2020/2008-Hochzeit/Susi-Marcus-Hochzeit/hochzeit_susanne-marcus001.jpg" : "JPEG" file identified
digikam.dimg.jpeg: Miscellaneous marker 0xe1, length 3638  ( 1 )
digikam.dimg.jpeg: Start of Image  ( 1 )
digikam.dimg.jpeg: Miscellaneous marker 0xe1, length 16265  ( 1 )
digikam.dimg.jpeg: Miscellaneous marker 0xe1, length 3638  ( 1 )
digikam.dimg.jpeg: Miscellaneous marker 0xe2, length 3158  ( 1 )
digikam.dimg.jpeg: Miscellaneous marker 0xe2, length 3158  ( 1 )
digikam.dimg.jpeg: Miscellaneous marker 0xed, length 16170  ( 1 )
digikam.dimg.jpeg: Miscellaneous marker 0xed, length 16170  ( 1 )
digikam.dimg.jpeg: Define Quantization Table 0  precision 0  ( 1 )
digikam.dimg.jpeg: Define Quantization Table 1  precision 0  ( 1 )
digikam.dimg.jpeg: Define Restart Interval 750  ( 1 )
digikam.dimg.jpeg: Define Quantization Table 0  precision 0  ( 1 )
digikam.dimg.jpeg: Adobe APP14 marker: version 100, flags 0xc000 0x0000, transform 1  ( 1 )
digikam.dimg.jpeg: Start Of Frame 0xc0: width=6000, height=4000, components=3  ( 1 )
digikam.dimg.jpeg:     Component 0: 1hx1v q=0  ( 1 )
digikam.dimg.jpeg:     Component 1: 1hx1v q=1  ( 1 )
digikam.dimg.jpeg:     Component 2: 1hx1v q=1  ( 1 )
digikam.dimg.jpeg: Define Huffman Table 0x00  ( 1 )
digikam.dimg.jpeg: Define Quantization Table 1  precision 0  ( 1 )
digikam.dimg.jpeg:           0   2   3   1   1   1   1   1  ( 2 )
digikam.dimg.jpeg:           0   0   0   0   0   0   0   0  ( 2 )
digikam.dimg.jpeg: Define Huffman Table 0x01  ( 1 )
digikam.dimg.jpeg:           1   1   1   1   1   1   1   1  ( 2 )
digikam.dimg.jpeg:           0   0   0   0   0   0   0   0  ( 2 )
digikam.dimg.jpeg: Define Huffman Table 0x10  ( 1 )
digikam.dimg.jpeg: Define Restart Interval 750  ( 1 )
digikam.dimg.jpeg:           0   1   3   3   3   3   2   4  ( 2 )
digikam.dimg.jpeg:           4   5   3   2   4   0   1  29  ( 2 )
digikam.dimg.jpeg: Define Huffman Table 0x11  ( 1 )
digikam.dimg.jpeg:           1   1   1   1   1   0   3   0  ( 2 )
digikam.dimg.jpeg:           3   0   2   2   1   0   2  19  ( 2 )
digikam.dimg.jpeg: Start Of Scan: 3 components  ( 1 )
digikam.dimg.jpeg:     Component 0: dc=0 ac=0  ( 1 )
digikam.dimg.jpeg:     Component 1: dc=1 ac=1  ( 1 )
digikam.dimg.jpeg:     Component 2: dc=1 ac=1  ( 1 )
digikam.dimg.jpeg:   Ss=0, Se=63, Ah=0, Al=0  ( 1 )
digikam.dimg.jpeg: Adobe APP14 marker: version 100, flags 0xc000 0x0000, transform 1  ( 1 )
digikam.dimg.jpeg: Start Of Frame 0xc0: width=6000, height=4000, components=3  ( 1 )
digikam.dimg.jpeg:     Component 0: 1hx1v q=0  ( 1 )
digikam.dimg.jpeg:     Component 1: 1hx1v q=1  ( 1 )
digikam.dimg.jpeg:     Component 2: 1hx1v q=1  ( 1 )
digikam.dimg.jpeg: Define Huffman Table 0x00  ( 1 )
digikam.dimg.jpeg:           0   2   3   1   1   1   1   1  ( 2 )
digikam.dimg.jpeg:           0   0   0   0   0   0   0   0  ( 2 )
digikam.dimg.jpeg: RST0  ( 3 )
digikam.dimg.jpeg: Define Huffman Table 0x01  ( 1 )
digikam.dimg.jpeg:           1   1   1   1   1   1   1   1  ( 2 )
digikam.dimg.jpeg:           0   0   0   0   0   0   0   0  ( 2 )
digikam.dimg.jpeg: Define Huffman Table 0x10  ( 1 )
digikam.dimg.jpeg:           0   1   3   3   3   3   2   4  ( 2 )
digikam.dimg.jpeg:           4   5   3   2   4   0   1  29  ( 2 )
digikam.dimg.jpeg: Define Huffman Table 0x11  ( 1 )
digikam.dimg.jpeg:           1   1   1   1   1   0   3   0  ( 2 )
digikam.dimg.jpeg:           3   0   2   2   1   0   2  19  ( 2 )
digikam.dimg.jpeg: Start Of Scan: 3 components  ( 1 )
digikam.dimg.jpeg:     Component 0: dc=0 ac=0  ( 1 )
digikam.dimg.jpeg:     Component 1: dc=1 ac=1  ( 1 )
digikam.dimg.jpeg:     Component 2: dc=1 ac=1  ( 1 )
digikam.dimg.jpeg: RST1  ( 3 )
digikam.dimg.jpeg:   Ss=0, Se=63, Ah=0, Al=0  ( 1 )
Comment 7 Marcus Hardt 2020-11-13 16:21:49 UTC
Sorry for the delay; Didn't notice the collision warning..
Comment 8 Maik Qualmann 2020-11-13 19:04:53 UTC
The log looks good. I don't remember a bug in digiKam-6.4.0 that could cause this problem. The tag "must" been written into the image. What does the metadata display in the right sidebar tab of digiKam show? Possibly provide a test image with a written tag.

Maik
Comment 9 Marcus Hardt 2020-11-17 21:25:15 UTC
It was a sad configuration that got me confused: Two hosts on NFS and a local copy.

Sorry for the noise and many thanks for the immediate help!!
Comment 10 Marcus Hardt 2020-11-19 09:29:00 UTC
I'm just having the inverse problem now:

I have verified that I'm using the right folder (sigh)

I have verfified (with exiftool) that the tags were written to the files

I have started another digikam instance on the 2nd host. 
That one fails to show the new tags.

Using 'right-mouse -> refresh' on the album does not help.

What can I do?
Comment 11 Maik Qualmann 2020-11-19 20:59:33 UTC
It's hard to tell what's wrong. Note that the automatic album monitoring is deactivated in current digiKam versions during runtime. The setting for this is in the collection settings. Otherwise, the metadata should be read in again via the item menu. And then we have the "Scan for new Items" in the Tools menu, which finds new and changed items, like the scan at the start.

Maik