Commit eef2d9c7 authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊
Browse files

[thumbnail/exrcreator] Add missing include

parent f2df1fe2
......@@ -23,6 +23,7 @@
#include <QImage>
#include <QFile>
#include <ImfHeader.h>
#include <ImfInputFile.h>
#include <ImfPreviewImage.h>
......@@ -71,8 +72,9 @@ bool EXRCreator::create(const QString &path, int, int, QImage &img)
if (!img.load( path )) {
return false;
}
if (img.depth() != 32)
if (img.depth() != 32) {
img = img.convertToFormat( QImage::Format_RGB32 );
}
return true;
} else {
return false;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment