Bug 161865 - Image not placed in New Tag category
Summary: Image not placed in New Tag category
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Engine (show other bugs)
Version: 0.9.4
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-09 22:00 UTC by Paul Waldo
Modified: 2017-08-13 15:37 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 1.0.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Waldo 2008-05-09 22:00:31 UTC
Version:           0.9.4-beta4 (using 3.5.8, Kubuntu (gutsy) 4:3.5.8-0ubuntu3.4)
Compiler:          Target: x86_64-linux-gnu
OS:                Linux (x86_64) release 2.6.22-14-generic

I created a new tag from a Raw image (right-click, Assign Tag, Create New Tag) and called it "a".  "a" was created, but the image was not tagged as such.  This was because there was an error writing the meta-data (see below).  BTW, any idea when we can write meta data to CRW files?

digikam: (a)
digikam: a :: /a
digikam: /home/digikam/Pictures/2008-04-30/zoo/photo2008-04-30_13-41-20-000002.crw ==> Comment:
digikam: /home/digikam/Pictures/2008-04-30/zoo/photo2008-04-30_13-41-20-000002.crw ==> Rating: 0
/home/digikam/Pictures/2008-04-30/zoo/photo2008-04-30_13-41-20-000002.crw ==> Keywords: a
digikam: /home/digikam/Pictures/2008-04-30/zoo/photo2008-04-30_13-41-20-000002.crw ==> Author: Paul Waldo
digikam: /home/digikam/Pictures/2008-04-30/zoo/photo2008-04-30_13-41-20-000002.crw ==> Author Title:
digikam: /home/digikam/Pictures/2008-04-30/zoo/photo2008-04-30_13-41-20-000002.crw ==> Credit:
digikam: /home/digikam/Pictures/2008-04-30/zoo/photo2008-04-30_13-41-20-000002.crw ==> Source:
digikam: /home/digikam/Pictures/2008-04-30/zoo/photo2008-04-30_13-41-20-000002.crw ==> Copyright:
Cannot save metadata using Exiv2  (Error #32: Setting IPTC metadata in CRW images is not supported)
Comment 1 x3ri7yz02 2008-05-27 05:56:50 UTC
Unable to reproduce bug with SVN version (revisions:  exiv2 1463, graphics 813168, libs 813167).  New tags created as described above are assigned correctly here.  

Paul - because Digikam stores tags in its own database, CRW images can be tagged even though exiv2 can't write IPTC tags to the image file itself. (Ie, the tag is stored in the Digikam database and not in the image itself.)

I don't know when (or if!) exiv2 will support setting IPTC in CRW.

Comment 2 caulier.gilles 2008-05-27 12:02:04 UTC
Tauri,

In theory, when TIFF write IO mode from Exiv2 will be implemented. it's under developpement from a separate branch of Exiv2 svn. It's planed for next major release of Exiv2.

Andreas, perhaps you can give more info about ?

Gilles Caulier
Comment 3 Andreas Huggel 2008-05-27 16:58:13 UTC
CRW is based on a format called CIFF, it is _not_ a TIFF based format. Exiv2 can already read and write CRW (although related, it's _much_ easier to deal with than TIFF).

However there are a limited number of documented or known tags in CRW files and I simply don't know where to put IPTC data (or XMP for that matter) in a CRW file.

So most probably it will never be possible to write IPTC data to a CRW file, although technically, it wouldn't be a problem.

-ahu.
Comment 4 Paul Waldo 2008-05-27 19:55:35 UTC
Sorry to cause such a stir, but the main gist of the report was simply an unhandled code path.  I didn't expect raw files to have IPTC written to them, its just that Digikam doesn't handle the case where you can't write the meta data.  It may be easier to recreate by removing the write bit on the file...
Comment 5 caulier.gilles 2008-12-05 20:20:01 UTC
Paul,

Are you tried digiKam 0.10.0 with Exiv2 0.18 which support TIFF metadata writting mode ?

Gilles Caulier
Comment 6 Paul Waldo 2009-06-05 18:05:52 UTC
Fixed in 0.10.0.  Thanks!