[Bug 211066] New: TIFFs written by digiKam not readable with GIMP 2.6.6

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 211066] New: TIFFs written by digiKam not readable with GIMP 2.6.6

Leonardo Giordani-2
https://bugs.kde.org/show_bug.cgi?id=211066

           Summary: TIFFs written by digiKam not readable with GIMP 2.6.6
           Product: digikam
           Version: unspecified
          Platform: Ubuntu Packages
        OS/Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           1.0.0-beta6 rev 1032708 (using KDE 4.3.2)
Installed from:    Ubuntu Packages

When saving a TIFF with digiKam, it cannot be opened with GIMP 2.6.6, causing
the following two errors

* invalid TIFF directory; tags are not sorted in ascending order
* TIFF directory is missing required "ImageLength" field

-------

Digikam info:

digiKam version 1.0.0-beta6 (rev.: 1032708)
Exiv2 can write to Jp2: Yes
Exiv2 can write to Jpeg: Yes
Exiv2 can write to Pgf: No
Exiv2 can write to Png: Yes
Exiv2 can write to Tiff: Yes
Exiv2 supports XMP metadata: Yes
LibCImg: 130
LibExiv2: 0.18
LibJPEG: 62
LibJasper: 1.900.1
LibKDE: 4.3.2 (KDE 4.3.2)
LibKExiv2: 0.6.0
LibKdcraw: 1.0.0
LibLCMS: 118
LibPGF: 6.09.33
LibPNG: 1.2.27
LibQt: 4.5.2
LibRaw: 0.8.2
LibTIFF: LIBTIFF, Version 3.8.2 Copyright (c) 1988-1996 Sam Leffler Copyright
(c) 1991-1996 Silicon Graphics, Inc.
Marble widget: 0.8.1
Parallelized demosaicing: No
LibGphoto2: 2.4.2
LibKipi: 1.0.0

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 211066] TIFFs written by digiKam not readable with GIMP 2.6.6

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=211066


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
          Component|general                     |Metadata
            Version|unspecified                 |1.0.0-beta6




--- Comment #1 from Gilles Caulier <caulier gilles gmail com>  2009-10-19 13:00:30 ---
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

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 211066] TIFFs written by digiKam not readable with GIMP 2.6.6

Bugzilla from ahuggel@gmx.net
In reply to this post by Leonardo Giordani-2
https://bugs.kde.org/show_bug.cgi?id=211066





--- Comment #2 from Andreas Huggel <ahuggel gmx net>  2009-10-19 19:39:02 ---
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

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 211066] TIFFs written by digiKam not readable with GIMP 2.6.6

Leonardo Giordani-2
In reply to this post by Leonardo Giordani-2
https://bugs.kde.org/show_bug.cgi?id=211066





--- Comment #3 from Leonardo Giordani <giordani leonardo gmail com>  2009-10-20 15:37:15 ---
I upladed to Megaupload http://www.megaupload.com/?d=I2TEKZHR a sample image
which exposes the problem.

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 211066] TIFFs written by digiKam not readable with GIMP 2.6.6

Marcel Wiesweg
In reply to this post by Leonardo Giordani-2
https://bugs.kde.org/show_bug.cgi?id=211066





--- Comment #4 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-11-06 16:16:19 ---
Created an attachment (id=38137)
 --> (http://bugs.kde.org/attachment.cgi?id=38137)
Small example, tiff file written and then metadata written with exiv2 SVN
(1912)

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 211066] TIFFs written by digiKam not readable with GIMP 2.6.6

Marcel Wiesweg
In reply to this post by Leonardo Giordani-2
https://bugs.kde.org/show_bug.cgi?id=211066





--- Comment #5 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-11-06 16:17:52 ---
Created an attachment (id=38138)
 --> (http://bugs.kde.org/attachment.cgi?id=38138)
Other cloud, this time written as usual but metadata not written with libexiv2

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 211066] TIFFs written by digiKam not readable with GIMP 2.6.6

Marcel Wiesweg
In reply to this post by Leonardo Giordani-2
https://bugs.kde.org/show_bug.cgi?id=211066


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]




--- Comment #6 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-11-06 16:23:21 ---
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)

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 211066] TIFFs written by digiKam not readable with GIMP 2.6.6

Gilles Caulier-4
In reply to this post by Leonardo Giordani-2
https://bugs.kde.org/show_bug.cgi?id=211066





--- Comment #7 from Gilles Caulier <caulier gilles gmail com>  2009-11-06 19:22:29 ---
Yes, i can reproduce it also.

So the problem is in Exiv2... certainly...

Andreas ?

Gilles

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 211066] TIFFs written by digiKam not readable with GIMP 2.6.6

Bugzilla from ahuggel@gmx.net
In reply to this post by Leonardo Giordani-2
https://bugs.kde.org/show_bug.cgi?id=211066





--- Comment #8 from Andreas Huggel <ahuggel gmx net>  2009-11-08 16:10:51 ---
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

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 211066] TIFFs written by digiKam not readable with GIMP 2.6.6

Bugzilla from ahuggel@gmx.net
In reply to this post by Leonardo Giordani-2
https://bugs.kde.org/show_bug.cgi?id=211066





--- Comment #9 from Andreas Huggel <ahuggel gmx net>  2009-11-08 16:13:23 ---
Sorry, there is a typo in the link above. The correct URL is:
http://dev.exiv2.org/boards/3/topics/show/201

Andreas

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 211066] TIFFs written by digiKam not readable with GIMP 2.6.6

Marcel Wiesweg
In reply to this post by Leonardo Giordani-2
https://bugs.kde.org/show_bug.cgi?id=211066


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE




--- Comment #10 from Marcel Wiesweg <marcel wiesweg gmx de>  2009-12-06 17:23:27 ---
Bugs 217593, 212072, 211066 and 211758 are now all merged to bug #211758

*** This bug has been marked as a duplicate of bug 211758 ***

--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 211066] TIFFs written by digiKam not readable with GIMP 2.6.6

Gilles Caulier-4
In reply to this post by Leonardo Giordani-2
https://bugs.kde.org/show_bug.cgi?id=211066


Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|1.0.0-beta6                 |1.0.0




--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel