From c7a9f67a23d49c023b11f348e11b3516620ce026 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Sun, 18 Dec 2022 22:59:12 +0200 Subject: [PATCH] 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 --- kioslave/thumbnail/imagecreator.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/kioslave/thumbnail/imagecreator.cpp b/kioslave/thumbnail/imagecreator.cpp index 4b661090..92ece9df 100644 --- 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 exiv.rotateImage(img); } - if (img.depth() != 32) { - img = img.convertToFormat(img.hasAlphaChannel() ? QImage::Format_ARGB32 : QImage::Format_RGB32); - } - return true; } ThumbCreator::Flags ImageCreator::flags() const { - return None; + return ThumbCreator::None; } - QWidget *ImageCreator::createConfigurationWidget() { QCheckBox *rotateCheckBox = new QCheckBox(i18nc("@option:check", "Rotate the image automatically"));