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
Graphics
Gwenview
Commits
537269eb
Commit
537269eb
authored
Jun 07, 2021
by
Daniel Novomeský
Committed by
Daniel Novomeský
Jun 24, 2021
Browse files
Enable color management for images with 16-bit depth per channel
parent
9763d196
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/documentview/rasterimageitem.cpp
View file @
537269eb
...
...
@@ -185,8 +185,25 @@ void RasterImageItem::updateDisplayTransform(QImage::Format format)
case
QImage
::
Format_Grayscale8
:
cmsFormat
=
TYPE_GRAY_8
;
break
;
case
QImage
::
Format_RGB888
:
cmsFormat
=
TYPE_RGB_8
;
break
;
case
QImage
::
Format_RGBX8888
:
case
QImage
::
Format_RGBA8888
:
cmsFormat
=
TYPE_RGBA_8
;
break
;
case
QImage
::
Format_Grayscale16
:
cmsFormat
=
TYPE_GRAY_16
;
break
;
case
QImage
::
Format_RGBA64
:
case
QImage
::
Format_RGBX64
:
cmsFormat
=
TYPE_RGBA_16
;
break
;
case
QImage
::
Format_BGR888
:
cmsFormat
=
TYPE_BGR_8
;
break
;
default:
qCWarning
(
GWENVIEW_LIB_LOG
)
<<
"Gwenview can
only
apply color profile on
RGB32 or ARGB32
images"
;
qCWarning
(
GWENVIEW_LIB_LOG
)
<<
"Gwenview can
not
apply color profile on
"
<<
format
<<
"
images"
;
return
;
}
...
...
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