[gimp] plug-ins: avoid problematic/marginal JXL compression settings
- From: Daniel Novomeský <dnovomesky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: avoid problematic/marginal JXL compression settings
- Date: Sat, 6 Nov 2021 16:29:57 +0000 (UTC)
commit 1d1234b74482afedb3c31e6d24cfc8d02b1e4882
Author: Daniel Novomesky <dnovomesky gmail com>
Date: Sat Nov 6 16:25:30 2021 +0100
plug-ins: avoid problematic/marginal JXL compression settings
plug-ins/common/file-jpegxl.c | 10 ++++++++++
1 file changed, 10 insertions(+)
---
diff --git a/plug-ins/common/file-jpegxl.c b/plug-ins/common/file-jpegxl.c
index cfc830b158..1920ce35e3 100644
--- a/plug-ins/common/file-jpegxl.c
+++ b/plug-ins/common/file-jpegxl.c
@@ -700,6 +700,16 @@ save_image (GFile *file,
* for better lossless compression efficiency. */
uses_original_profile = TRUE;
}
+ else
+ {
+ /* 0.1 is actually minimal value for lossy in libjxl 0.5
+ * 0.01 is allowed in libjxl 0.6 but
+ * using too low value with lossy compression is not wise */
+ if (compression < 0.1)
+ {
+ compression = 0.1;
+ }
+ }
drawable_type = gimp_drawable_type (drawable);
drawable_width = gimp_drawable_get_width (drawable);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]