[gimp] plug-ins: new "use-sharp-yuv" param only relevant when non "lossless".



commit ada64be8cd3f472447b80d977ae92a116728759e
Author: Jehan <jehan girinstud io>
Date:   Tue Apr 26 17:18:40 2022 +0200

    plug-ins: new "use-sharp-yuv" param only relevant when non "lossless".
    
    Cf. question to libwebp devs and also grepping the code directly:
    https://bugs.chromium.org/p/webp/issues/detail?id=567#c6

 plug-ins/file-webp/file-webp-dialog.c | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/plug-ins/file-webp/file-webp-dialog.c b/plug-ins/file-webp/file-webp-dialog.c
index 60a3154a8c..bf6415c1a8 100644
--- a/plug-ins/file-webp/file-webp-dialog.c
+++ b/plug-ins/file-webp/file-webp-dialog.c
@@ -107,6 +107,9 @@ save_dialog (GimpImage     *image,
   gimp_procedure_dialog_get_label (GIMP_PROCEDURE_DIALOG (dialog),
                                    "advanced-title", _("Advanced Options"));
 
+  gimp_procedure_dialog_set_sensitive (GIMP_PROCEDURE_DIALOG (dialog),
+                                       "use-sharp-yuv",
+                                       TRUE, config, "lossless", TRUE);
   gimp_procedure_dialog_fill_box (GIMP_PROCEDURE_DIALOG (dialog),
                                   "advanced-options",
                                   "use-sharp-yuv",


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