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
3635f354
Commit
3635f354
authored
Mar 05, 2021
by
Daniel Novomeský
Committed by
Daniel Novomeský
Mar 05, 2021
Browse files
Show quality chooser for JXL (JPEG XL) format
parent
9ce466f6
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/gvcore.cpp
View file @
3635f354
...
...
@@ -128,6 +128,7 @@ struct GvCorePrivate
QObject
::
connect
(
fileWidget
,
&
KFileWidget
::
filterChanged
,
JPEGQualityChooserWidget
,
[
=
](
const
QString
&
filter
)
{
JPEGQualityChooserWidget
->
setVisible
(
filter
.
contains
(
QLatin1String
(
"jpeg"
))
||
filter
.
contains
(
QLatin1String
(
"jxl"
))
||
filter
.
contains
(
QLatin1String
(
"webp"
))
||
filter
.
contains
(
QLatin1String
(
"avif"
))
||
filter
.
contains
(
QLatin1String
(
"heif"
))
||
...
...
lib/document/documentloadedimpl.cpp
View file @
3635f354
...
...
@@ -84,6 +84,7 @@ bool DocumentLoadedImpl::saveInternal(QIODevice* device, const QByteArray& forma
QImageWriter
writer
(
device
,
format
);
// If we're saving a non-JPEG image as a JPEG, respect the quality setting
if
(
format
==
QByteArrayLiteral
(
"jpeg"
)
||
format
==
QByteArrayLiteral
(
"jxl"
)
||
format
==
QByteArrayLiteral
(
"webp"
)
||
format
==
QByteArrayLiteral
(
"avif"
)
||
format
==
QByteArrayLiteral
(
"heif"
)
||
...
...
Write
Preview
Supports
Markdown
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