Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Network
KIO Extras
Commits
eef2d9c7
Commit
eef2d9c7
authored
Apr 29, 2021
by
Ömer Fadıl Usta
😊
Browse files
[thumbnail/exrcreator] Add missing include
parent
f2df1fe2
Changes
1
Hide whitespace changes
Inline
Side-by-side
thumbnail/exrcreator.cpp
View file @
eef2d9c7
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment