Katana workspace
Revision | c7a9f67a23d49c023b11f348e11b3516620ce026 (tree) |
---|---|
Time | 2022-12-19 05:59:12 |
Author | Ivailo Monev <xakepa10@gmai...> |
Commiter | Ivailo Monev |
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>
@@ -58,19 +58,14 @@ bool ImageCreator::create(const QString &path, int width, int height, QImage &im | ||
58 | 58 | exiv.rotateImage(img); |
59 | 59 | } |
60 | 60 | |
61 | - if (img.depth() != 32) { | |
62 | - img = img.convertToFormat(img.hasAlphaChannel() ? QImage::Format_ARGB32 : QImage::Format_RGB32); | |
63 | - } | |
64 | - | |
65 | 61 | return true; |
66 | 62 | } |
67 | 63 | |
68 | 64 | ThumbCreator::Flags ImageCreator::flags() const |
69 | 65 | { |
70 | - return None; | |
66 | + return ThumbCreator::None; | |
71 | 67 | } |
72 | 68 | |
73 | - | |
74 | 69 | QWidget *ImageCreator::createConfigurationWidget() |
75 | 70 | { |
76 | 71 | QCheckBox *rotateCheckBox = new QCheckBox(i18nc("@option:check", "Rotate the image automatically")); |