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>
This commit is contained in:
Ivailo Monev 2022-12-18 22:59:12 +02:00
parent 2ce6520523
commit c7a9f67a23

View file

@ -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"));