[gimp] plug-ins: JXL lossless implies uses_original_profile



commit 080d680b7d69b5e440a7814a6f5f62235011e6bc
Author: Daniel Novomesky <dnovomesky gmail com>
Date:   Tue Oct 26 18:10:52 2021 +0200

    plug-ins: JXL lossless implies uses_original_profile

 plug-ins/common/file-jpegxl.c | 7 +++++++
 1 file changed, 7 insertions(+)
---
diff --git a/plug-ins/common/file-jpegxl.c b/plug-ins/common/file-jpegxl.c
index 91711b5e86..6ff3c0f865 100644
--- a/plug-ins/common/file-jpegxl.c
+++ b/plug-ins/common/file-jpegxl.c
@@ -693,6 +693,13 @@ save_image (GFile                *file,
                 "uses-original-profile", &uses_original_profile,
                 NULL);
 
+  if (lossless)
+    {
+      /* JPEG XL developers recommend enabling uses_original_profile
+       * for better lossless compression efficiency. */
+      uses_original_profile = TRUE;
+    }
+
   drawable_type   = gimp_drawable_type (drawable);
   drawable_width  = gimp_drawable_get_width (drawable);
   drawable_height = gimp_drawable_get_height (drawable);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]