Bug 276059 - Tags are not written to files on export or save when editing TIFF files
Summary: Tags are not written to files on export or save when editing TIFF files
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-TIFF (show other bugs)
Version: 2.0.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-19 17:47 UTC by Guillaume Paumier
Modified: 2017-08-13 15:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 2.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Paumier 2011-06-19 17:47:38 UTC
Version:           2.0.0 (using KDE 4.6.2) 
OS:                Linux



Reproducible: Always

Steps to Reproduce:
1. Add a tag to a TIF file
2. Open the TIF file in the image editor
3. Export or save the TIF file to another format (e.g. JPG)
4. Metadata and ratings are written to the exported file, but tags are not.
Comment 1 caulier.gilles 2011-06-21 15:59:20 UTC
No reproducible here. 

How do you check if tags are not written in file ? XMP contain relevant tags !

Gilles Caulier
Comment 2 Marcel Wiesweg 2011-07-11 17:03:46 UTC
> Steps to Reproduce:
> 1. Add a tag to a TIF file
> 2. Open the TIF file in the image editor
> 3. Export or save the TIF file to another format (e.g. JPG)
> 4. Metadata and ratings are written to the exported file, but tags are not.

The relevant code would be ImageWindow::prepareImageToSave(), which is image 
format agnostic.

You have double checked that the relevant field in the settings, to write tags 
to metadata, is enabled?

This is why I would like to ask for confirmation for some of the specific 
claims here:
- it happens only when editing a TIFF file, specifically not when editing a 
JPG or PNG file
- it happens when saving to "another format", which means at least JPG and a 
second format like PNG were tested
- digikam writes tags to fields in IPTC and XMP. All fields are empty.

Thanks
Comment 3 Guillaume Paumier 2011-07-17 19:17:05 UTC
(In reply to comment #2)
> 
> You have double checked that the relevant field in the settings, to write tags 
> to metadata, is enabled?

Yes.

I didn't check the output of exiv2 for the generated files; I noticed the tags were missing in the digikam interface, in the album view.

Furthermore, when the generated image was exported to an online service (Flickr), no tags were added, even though the plugin option to "use tags from the host application" was checked.

So I guess the problem was that the tags were not saved into the database.

That said, I just compiled the latest trunk, and the problem seems to be fixed now.