• R/O
  • HTTP
  • SSH
  • HTTPS

kde-workspace: Commit

Katana workspace


Commit MetaInfo

Revisionc7a9f67a23d49c023b11f348e11b3516620ce026 (tree)
Time2022-12-19 05:59:12
AuthorIvailo Monev <xakepa10@gmai...>
CommiterIvailo Monev

Log Message

kioslave: do not convert the image from imagethumbnail

if the depth is required to be 32 somewhere else then it should be
converted there

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>

Change Summary

Incremental Difference

--- a/kioslave/thumbnail/imagecreator.cpp
+++ b/kioslave/thumbnail/imagecreator.cpp
@@ -58,19 +58,14 @@ bool ImageCreator::create(const QString &path, int width, int height, QImage &im
5858 exiv.rotateImage(img);
5959 }
6060
61- if (img.depth() != 32) {
62- img = img.convertToFormat(img.hasAlphaChannel() ? QImage::Format_ARGB32 : QImage::Format_RGB32);
63- }
64-
6561 return true;
6662 }
6763
6864 ThumbCreator::Flags ImageCreator::flags() const
6965 {
70- return None;
66+ return ThumbCreator::None;
7167 }
7268
73-
7469 QWidget *ImageCreator::createConfigurationWidget()
7570 {
7671 QCheckBox *rotateCheckBox = new QCheckBox(i18nc("@option:check", "Rotate the image automatically"));
Show on old repository browser