Summary: | TIFFs written by digiKam not readable with GIMP | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Leonardo Giordani <giordani.leonardo> |
Component: | Plugin-DImg-TIFF | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ahuggel, caulier.gilles, marcel.wiesweg |
Priority: | NOR | ||
Version: | 1.0.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Unspecified | ||
Latest Commit: | Version Fixed In: | 6.0.0 | |
Attachments: |
Small example, tiff file written and then metadata written with exiv2 SVN (1912)
Other cloud, this time written as usual but metadata not written with libexiv2 |
Description
Leonardo Giordani
2009-10-19 12:48:56 UTC
Leonardo, I recommend to update Exiv2 to 0.18.2. This require to recompile libkexiv2 + digiKam & co. Andreas, I suspect a problem with Exiv2 there. To generate a TIFF file, digiKam use std libtiff, and after call Exiv2 to write some IPTC and XMP to image. http://lxr.kde.org/source/extragear/graphics/digikam/libs/dimg/loaders/tiffloader.cpp#829 Gilles Leonardo, Can you please provide a sample picture so that we can see which tags are not sorted as they should be? As for the missing ImageLength tag (probably Exif.Image.ImageLength), digiKam will need to make sure it's there. Exiv2 doesn't care. Andreas I upladed to Megaupload http://www.megaupload.com/?d=I2TEKZHR a sample image which exposes the problem. Created attachment 38137 [details]
Small example, tiff file written and then metadata written with exiv2 SVN (1912)
Created attachment 38138 [details]
Other cloud, this time written as usual but metadata not written with libexiv2
I can reproduce this problem. Writing any TIFF file will create a file that can be opened, but GIMP complains: unknown field with tag 11 (0xb) encountered unknown field with tag 18246 (0x4746) encountered unknown field with tag 18249 (0x4749) encountered unknown field with tag 513 (0x201) encountered unknown field with tag 514 (0x202) encountered and shows the error messages mentioned previously. Removing the single line that calls libexiv2 to write metadata to the newly written TIFF file cures the problem (see second sample image). Note that the second image has some metadata as well because digikam already writes Xmp, Iptc and some Exif tags using libtiff directly (probably coming from times when exiv2 couldn't do that) Yes, i can reproduce it also. So the problem is in Exiv2... certainly... Andreas ? Gilles Looks like Exif data from a JPEG image in a TIFF file. E.g., it has thumbnail tags, which are common in JPEG, but here they turn this image into a multi-page TIFF image (and apparently an invalid one due to the JPEG thumbnail) - probably not what was intended. This is a combination of bug #183171 and the issue discussed here http://dev.exiv2.org/boards/3/topics/show/20, I guess. Exiv2 is not user-friendly when writing to TIFF. Currently, an application must make sure it writes only valid tags to TIFF images and preserves tags which are needed for the image itself. But if it does that, it will work. See the exiv2 command-line tool for an example, a pointer is in the thread mentioned above. Andreas Sorry, there is a typo in the link above. The correct URL is: http://dev.exiv2.org/boards/3/topics/show/201 Andreas Bugs 217593, 212072, 211066 and 211758 are now all merged to bug #211758 *** This bug has been marked as a duplicate of bug 211758 *** Not reproducible in 6.0.0 |