[Digikam-devel] [Bug 141774] autorotate does not work however kipi rotate works

Benjamin Schindler bschindler at student.ethz.ch
Tue Jul 10 11:18:58 BST 2007

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
bschindler student ethz ch changed:

           What    |Removed                     |Added
                 CC|                            |bschindler student ethz ch

------- Additional Comments From bschindler student ethz ch  2007-07-10 12:18 -------
I have this bug as well - Canon Powershot S2... I investigated a bit further and found this: 

Size of Exif metadata from camera = 10238
digikam: Exif header found at position 4
digikam: Exif autorotate: IMG_2789.JPG using (/home/benjamin/images/2007/Verschiedenes/.digikam-camera-tmp1-18185)
digikam: ExifRotate: not a JPEG file: /home/benjamin/images/2007/Verschiedenes/.digikam-camera-tmp1-18185
digikam: Dirty: /2007/Verschiedenes
digikam: Dirty: /

Looking at the code, it seems that this function here fails: 

bool isJpegImage(const QString& file)
    // Check if the file is an JPEG image
    KFileMetaInfo metaInfo(file, "image/jpeg", KFileMetaInfo::Fastest);

    if (metaInfo.isValid())
        if (metaInfo.mimeType() == "image/jpeg")
            return true;

    return false;

it seems that the metaInfo code does not work properly

More information about the Digikam-devel mailing list