Commit 3635f354 authored by Daniel Novomeský's avatar Daniel Novomeský Committed by Daniel Novomeský
Browse files

Show quality chooser for JXL (JPEG XL) format

parent 9ce466f6
......@@ -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")) ||
......
......@@ -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") ||
......
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