When I import RAW images from Canon 450D, they are all shown in landscape. When I do the same for images from Canon 500D or 60D, the landscape orientation is recognized. I'm using libkdcraw from KPhotoAlbum. Reproducible: Always
A sample image is available from http://jkt.flaska.net/IMG_5764.CR2. I'm testing with the git HEAD of libkdcraw, which is v4.9.1-18-g4849126 at this point.
Not reproducible here under digiKam. It's not a libkdcraw problem. sound like a KphotoAlbum dysfunction. http://www.flickr.com/photos/digikam/8039039149/sizes/o/in/photostream/ Gilles Caulier
Right, this is a bug in my own code which I've shamelessly stolen from Digikam back in 2007. Reclassifying, sorry for noise.
It looks like the RawImageDecoder returns already rotated image iff the result has been obtained by doing the actual RAW decoding (there's a quick fallback to the embedded JPEG preview if it is big enough -- which is the case for 500D and 60D, but not for 450D). A proper fix would be (IMHO) to: - remove ImageDecoder altogether, there's only ever been a RawImageDecoder - make it return the actual orientation of the returned data - take this data into account when calculating the desired rotation (remember, users are free to rotate inside KPA as well) I'll have a look at this later.
Git commit 8f5209feb79e89151f4d8de69dc468caa820543f by Jan Kundrát. Committed on 27/10/2012 at 13:46. Pushed by jkt into branch 'master'. RAW: Add a note about what's going on M +2 -0 ImageManager/RawImageDecoder.cpp http://commits.kde.org/kphotoalbum/8f5209feb79e89151f4d8de69dc468caa820543f