AutoPtr<MediaDetails> LocalImage::GetDetails()
{
    AutoPtr<MediaDetails> details = LocalMediaItem::GetDetails();
    AutoPtr<IInteger32> r;
    CInteger32::New(rotation, (IInteger32**)&r);
    details->AddDetail(MediaDetails::INDEX_ORIENTATION, r);
    if (MIME_TYPE_JPEG.Equals(mimeType)) {
        // ExifInterface returns incorrect values for photos in other format.
        // For example, the width and height of an webp images is always '0'.
        MediaDetails::ExtractExifInfo(details, filePath);
    }
    return details;
}