[Digikam-devel] [Bug 123742] preview-pictures seem to be handled differently by Digikam and Konqueror
Gilles Caulier
caulier.gilles at free.fr
Fri Apr 7 07:46:02 BST 2006
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=123742
------- Additional Comments From caulier.gilles free fr 2006-04-07 08:46 -------
SVN commit 527168 by cgilles:
digikam from stable : process exif auto-rotation before to save thumbnail file in ~/.thumbnails. This way is homogenous with konqueror.
CCMAIL: digikam-devel kde org
CCBUGS: 123742
M +6 -11 digikamthumbnail.cpp
--- branches/stable/extragear/graphics/digikam/kioslave/digikamthumbnail.cpp #527167:527168
@ -298,12 +298,10 @
createThumbnailDirs();
}
-
kio_digikamthumbnailProtocol::~kio_digikamthumbnailProtocol()
{
}
-
void kio_digikamthumbnailProtocol::get(const KURL& url )
{
int size = metaData("size").toInt();
@ -334,7 +332,6 @
error(KIO::ERR_INTERNAL, i18n("File does not exist"));
return;
}
-
img = loadPNG(thumbPath);
if (!img.isNull())
@ -377,13 +374,13 @
if (img.depth() != 32)
img = img.convertDepth(32);
+
+ if (exif)
+ exifRotate(url.path(), img);
- img.setText(QString("Thumb::URI").latin1(),
- 0, uri);
- img.setText(QString("Thumb::MTime").latin1(),
- 0, QString::number(st.st_mtime));
- img.setText(QString("Software").latin1(),
- 0, QString("Digikam Thumbnail Generator"));
+ img.setText(QString("Thumb::URI").latin1(), 0, uri);
+ img.setText(QString("Thumb::MTime").latin1(), 0, QString::number(st.st_mtime));
+ img.setText(QString("Software").latin1(), 0, QString("Digikam Thumbnail Generator"));
KTempFile temp(thumbPath + "-digikam-", ".png");
if (temp.status() == 0)
@ -395,8 +392,6 @
}
img = img.smoothScale(size, size, QImage::ScaleMin);
- if (exif)
- exifRotate(url.path(), img);
if (img.isNull())
{
More information about the Digikam-devel
mailing list