portrait CRW files (EOS 300D) are upside down

Bug #105947 reported by David Fokkema
6
Affects Status Importance Assigned to Milestone
exiv2 (Ubuntu)
Fix Released
High
Unassigned
Feisty
Won't Fix
High
Unassigned

Bug Description

Binary package hint: digikam

I took my camera, photographed two pictures in portrait mode (camera rotated counter-clockwise 90 degrees), one in JPEG, one in RAW (CRW) and imported them into digikam. The JPEG is rotated ok, but the CRW is upside down. All my photo's imported from edgy's digikam show the same behaviour.

Revision history for this message
Achim Bohnet (allee) wrote :

What a coincidence ;) I'm working right now on an exiv2 0.14 -> 0.12 backport for an fix
that looks like it fixes your problem too:

     http://dev.robotbattle.com/cmtinfo_svn.php?r=10&l=50&v=1079

Please add the output of

    dpkg -l digikam libexiv\*

to this bug report and attach a raw file that shows this error.

More later ...

Revision history for this message
Achim Bohnet (allee) wrote :

I was too optimistic :( Did not work here. I've sent the following e-mail to upstream:

On Thursday, 12. April 2007, you wrote:
> svn diff -r 1078:1079 crwimage.cpp > crwimage.patch
>
> Gilles
>
Hi Gilles, Andreas,

Background: Kubuntu/Feisty is in freeze (release 19th of April) so
I can just simply to 0.14.

The patch did not work here. All three cases, digikam 0.9.1 and exiv2 0.12

        o unpatched
        o patch with rev 1079 (applies, only offsets are different)
        o patch with only last hunk

--- exiv2-0.12.orig/src/crwimage.cpp
+++ exiv2-0.12/src/crwimage.cpp
@@ -1404,10 +1404,10 @@
         { 1, 0 },
         { 3, 180 },
         { 3, -180 },
- { 6, 270 },
- { 6, -90 },
- { 8, 90 },
- { 8, -270 },
+ { 6, 90 },
+ { 6, -270 },
+ { 8, 270 },
+ { 8, -90 },
         // last entry
         { 0, 0 }
     };

In all cases, when I drag and drop

        http://digikam3rdparty.free.fr/TEST_IMAGES/RAW/VERTICAL/CANON-POWERSHOTG5.CRW

the digikam shows image thumbnail and preview in landscape, not portrait.
When I open the editor and close (without change) and thumbnail is still wrong
but preview is correct.

Neke tried with 0.14 + digikam from svn and there thumbnail and preview was
correct. So something is missing or I do something stupidly wrong.

Any idea what's missing to get 0.12 work correctly with .crw files?

Achim
P.S. fwiw: Kubuntu has already a bug about it:
https://bugs.launchpad.net/ubuntu/+source/digikam/+bug/105947
feel to add infos there too ;) but I will happily forward any
info I get to the bug report.

Revision history for this message
Achim Bohnet (allee) wrote :

heh, how could I dare to beleave that it was not my fault ;) Gilles pointed out
my error and now it works. Here the reply to his email:

On Friday, 13. April 2007, you wrote:
> Achim,
>
> in all case, force the thumbnails to be rebuilt using F5. Also the option to
> use the orientation flag is set ?

Ah, shame on me, option was turned off :(

So with

   Settings -> Configure digikam ... -> Metadata: [x] Shomw images/thumbs
                                        rotated according to orientation tag

actived Andreas patch fixes the problem:

   http://digikam3rdparty.free.fr/TEST_IMAGES/RAW/VERTICAL/CANON-POWERSHOTG5.CRW

copied without the patch is upside down. And with the patch
it correctly displayed as thumb / preview.

Thx a lot Gilles,
Achim
>
> Gilles

Changed in digikam:
assignee: nobody → allee
status: Unconfirmed → In Progress
Revision history for this message
Achim Bohnet (allee) wrote :

Scope: bug affects all Canon Digital Cameras that produce .CRW raw files.
The library is used by almost all photo applications in ubuntu:

libexiv2-0.12
Reverse Depends:
  exiv2
  libexiv2-doc
  showfoto
  libkexiv2-0
  digikamimageplugins
  digikam
  ufraw
  showfoto
  kphotoalbum
  gpscorrelate-gui
  gpscorrelate
  gimp-ufraw
  exiv2
  libkexiv2-0
  libexiv2-doc
  libexiv2-dev
  kipi-plugins
  gwenview
  digikamimageplugins
  digikam

Revision history for this message
Jonathan Riddell (jr) wrote :

uploaded by tonio

Changed in digikam:
importance: Undecided → High
status: In Progress → Fix Released
Revision history for this message
Achim Bohnet (allee) wrote :

On NO. For whatever reason fix 0.12-0ubuntu3 never made it info feisty :(
Open again.

Changed in exiv2:
status: Fix Released → In Progress
Revision history for this message
David Fokkema (dfokkema) wrote :

When will it make it into feisty? I currently have libexiv2-0.12 version 0.12-0ubuntu2 and I'm still seeing this bug, :-( Thanks!

Changed in exiv2:
status: New → In Progress
status: In Progress → Fix Released
assignee: nobody → allee
importance: Undecided → High
Achim Bohnet (allee)
Changed in exiv2:
assignee: allee → nobody
assignee: allee → nobody
Revision history for this message
LumpyCustard (orangelumpycustard) wrote :

Please could someone mark this as Won't Fix for Feisty?

Revision history for this message
Hew (hew) wrote :

Ubuntu Feisty Fawn is no longer supported, so a SRU will not be issued for this release. Marking Feisty as Won't Fix.

Changed in exiv2:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.