Ok,<br><br>Andreas, Marcel, look these demonstration done with my Dynax 5D :<br><br>1th test :<br>-----------<br><br>I just have taken one RAW picture at home with my camera, using a vertical orientation. <br><br>I look woth my camera preview witch orientation is used : the image is not vertically oriented, but horizontally... 
<br>Note than my camera have a setting to render on flat camera screen the image with the right orientation. This setting is volontary disable.<br><br>Now, i download the picture using konqueror : there is a RAW file and a THM file :
<br><br><a href="http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_before_paddle_rotation.mrw">http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_before_paddle_rotation.mrw</a><br><a href="http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_before_paddle_rotation.thm">
http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_before_paddle_rotation.thm</a><br><br>With these both image, i create an Exif dump using Exiv2 :<br><br><a href="http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_before_paddle_rotation.mrw.dump">
http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_before_paddle_rotation.mrw.dump</a><br>
<a href="http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_before_paddle_rotation.thm.dump">http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_before_paddle_rotation.thm.dump</a><br><br>Now, I turn off the camera, remove the memory card, remove the power battery, to be sure than no info is recorded in camera hardware.
<br><br>Now i put again the memory card and turn on my camera. I back to the camera preview mode and i rotate manaully the picture using the camera _paddle_. I reconnect the camera to the computer an redownload again the same files :
<br><br><a href="http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_after_paddle_rotation.mrw">http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_after_paddle_rotation.mrw</a><br>
<a href="http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_after_paddle_rotation.thm">http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_after_paddle_rotation.thm</a><br>
<br>
With these both image, i create an Exif dump using Exiv2 :<br>
<br>
<a href="http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_after_paddle_rotation.mrw.dump">http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_after_paddle_rotation.mrw.dump</a><br>

<a href="http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_after_paddle_rotation.thm.dump">http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_after_paddle_rotation.thm.dump</a><br><br>And finally, i do a simple diff between dump file. There are the result below :
<br><br>diff pict0437_before_paddle_rotation.thm.dump pict0437_after_paddle_rotation.thm.dump<br>4c4<br>< Exif.Image.Orientation                       Short       1  top, left<br>---<br>> Exif.Image.Orientation                       Short       1  left, bottom
<br><br><br>diff pict0437_before_paddle_rotation.mrw.dump pict0437_after_paddle_rotation.mrw.dump<br>7c7<br>< Exif.Image.Orientation                       Short       1  top, left<br>---<br>> Exif.Image.Orientation                       Short       1  left, bottom
<br><br>Conclusion 1 : my camera set the Exif.Image.Orientation tags accordinly with my orientation correction set by the camera paddle.<br><br>2nd test :<br>-----------<br><br>And now the better for the end : use "kcraw -e 
file.mrw" to extract the JPG preview image as well, like digiKam do. Note than kcraw bin program is dcraw 8.60 generated by the libkdcraw library. The preview files are here :<br><br><a href="http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_before_paddle_rotation.thumb.jpg">
http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_before_paddle_rotation.thumb.jpg</a><br>
<a href="http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_after_paddle_rotation.thumb.jpg">http://digikam3rdparty.free.fr/TEST_IMAGES/TestRotation/pict0437_after_paddle_rotation.thumb.jpg</a><br><br>==> The files are different because dcraw 
8.60 include the Exif information with the preview image extracted. And of course, the difference are about Exif.Image.Orientation tag...<br><br>Conclusion 2 : well, just look the thumbnails aurientation in digiKam with these pictures (MRW, THM, and 
THUMB.JPG), and look the result :<br> the file "pict0437_after_paddle_rotation.thumb.jpg" is wrong oriented...<br><br>Gilles<br><br><br>
<br><br><div><span class="gmail_quote">2007/3/13, Andreas Huggel <<a href="mailto:ahuggel@gmx.net">ahuggel@gmx.net</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tuesday 13 March 2007 05:22, Marcel Wiesweg wrote:<br>><br>> The CRW files have two different sources:<br>> The CRW header<br>> The Exif tag<br>><br>> > c) Wrong (180°) in thumbnail, wrong (180°) in preview, correct in
<br>> > full version Canon-G5.crw<br>><br>> Dcraw gets the (correct) information from the CRW header.<br>> The preview and thumbnail loader get the information from the Exif<br>> tag, which is "right, top" and wrong by 180°.
<br>><br><br>I've changed the mapping from the CRW header information to Exif<br>orientation in Exiv2. The thumbnail and preview should now be correct<br>too.<br><br>-ahu.<br>_______________________________________________
<br>Digikam-devel mailing list<br><a href="mailto:Digikam-devel@kde.org">Digikam-devel@kde.org</a><br><a href="https://mail.kde.org/mailman/listinfo/digikam-devel">https://mail.kde.org/mailman/listinfo/digikam-devel</a><br>
</blockquote></div><br>