[Bug 274865] New: Multipage TIFF files with Exif.Image.Orientation = 1 aren't decoded properly

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

[Bug 274865] New: Multipage TIFF files with Exif.Image.Orientation = 1 aren't decoded properly

Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=274865

           Summary: Multipage TIFF files with Exif.Image.Orientation = 1
                    aren't decoded properly
           Product: digikam
           Version: 2.0.0
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: [hidden email]
        ReportedBy: [hidden email]


Version:           2.0.0 (using KDE 4.6.2)
OS:                Linux

Some pro- and semi-pro cameras allow the photographer to save the images in
TIFF format.

In this case, the file can contain two pages: one for the high-resolution
image, and one for a low-resolution thumbnail.

Digikam seems to have problem decoding such files. I'm not sure if the issue
comes from the multipage TIFF, or the EXIF orientation, or both.

Wiping out the EXIF metadata fixes the problem, but obviously that's not an
acceptable general solution.

Reproducible: Always

Steps to Reproduce:
* Open http://dl.dropbox.com/u/17707983/DSC_0301.TIF (35.2 MB) in digiKam
* Zoom to 100%

Actual Results:  
* Strips are visible when viewing the image at 100%
* Strips are actually saved when saving the file in another format, so it's not
only a display issue.

Expected Results:  
* The image should be decoded properly.

--
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 274865] TIFF files with Exif.Image.Orientation = 1 aren't decoded properly

Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=274865


Guillaume Paumier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Multipage TIFF files with   |TIFF files with
                   |Exif.Image.Orientation = 1  |Exif.Image.Orientation = 1
                   |aren't decoded properly     |aren't decoded properly




--- Comment #1 from Guillaume Paumier <guillom pom gmail com>  2011-06-03 21:18:30 ---
Note: After further investigation, I can tell this isn't a multipage issue
(adjusting the bug summary accordingly).

I've used tiffsplit and the same problem happens on single-page TIFF files with
Exif.Image.Orientation = 1

Single-page TIFF test file at http://dl.dropbox.com/u/17707983/tiffstripes.tif
(34.5 MB)

The issue could be circumvented by manually resetting the image orientation,
except digikam can't write metadata to TIFF files ( bug 271757 ).

--
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 274865] TIFF files with Exif.Image.Orientation = 1 aren't decoded properly

Guillaume Paumier
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=274865





--- Comment #2 from Guillaume Paumier <guillom pom gmail com>  2011-06-03 21:57:53 ---
(In reply to comment #1)
>
> The issue could be circumvented by manually resetting the image orientation,
> except digikam can't write metadata to TIFF files ( bug 271757 ).

OK, so now resetting the image orientation works for TIFF files; I swear it
didn't a few days ago :) I guess this is what you get for using trunk!

So, temporary workaround: reset the image orientation, and rotate the picture.

This doesn't fox the underlying issue, though.

--
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 274865] TIFF files with Exif.Image.Orientation = 1 aren't decoded properly

Marcel Wiesweg
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=274865


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1




--- Comment #3 from Marcel Wiesweg <marcel wiesweg gmx de>  2011-06-11 23:11:35 ---
Yes, quite interesting: It seems the pixels in the individual rows are not
rotated, only the complete rows are rearranged.

--
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 274865] TIFF files with Exif.Image.Orientation = 1 aren't decoded properly

Marcel Wiesweg
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=274865





--- Comment #4 from Marcel Wiesweg <marcel wiesweg gmx de>  2011-06-11 23:25:43 ---
Guillaume: orientation is 8

The key is given here:
http://www.asmail.be/msg0055572905.html

--
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 274865] TIFF files with Exif.Image.Orientation = 1 aren't decoded properly

Marcel Wiesweg
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=274865


Marcel Wiesweg <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #5 from Marcel Wiesweg <marcel wiesweg gmx de>  2011-06-11 23:27:56 ---
Git commit 26fead33cae1e5174911a51182bdb0a47479aadf by Marcel Wiesweg.
Committed on 11/06/2011 at 23:27.
Pushed by mwiesweg into branch 'master'.

Do not handle rotation by exif flag with libtiff, which will do weird stuff
like only rotating rows.

BUG: 274865

M  +2    -1    NEWS    
M  +3    -1    libs/dimg/loaders/tiffloader.cpp    

http://commits.kde.org/digikam/26fead33cae1e5174911a51182bdb0a47479aadf

--
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 274865] TIFF files with Exif.Image.Orientation = 1 aren't decoded properly

Gilles Caulier-4
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=274865

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Version Fixed In|                            |2.0.0

--
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
|

[digikam] [Bug 274865] TIFF files with Exif.Image.Orientation = 1 aren't decoded properly

bugzilla_noreply
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=274865

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|general                     |ImageEditor-FileIO

--
You are receiving this mail because:
You are the assignee for the bug.
Reply | Threaded
Open this post in threaded view
|

[digikam] [Bug 274865] TIFF files with Exif.Image.Orientation = 1 aren't decoded properly

bugzilla_noreply
In reply to this post by Guillaume Paumier
https://bugs.kde.org/show_bug.cgi?id=274865

[hidden email] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|FilesIO-Engine              |FilesIO-TIFF

--
You are receiving this mail because:
You are the assignee for the bug.