[gimp] plug-ins: change export dialog title when exporting as AVIF.



commit 5ec3293fee9ae472c1362f1884b597cdddcafd36
Author: Jehan <jehan girinstud io>
Date:   Sun Oct 4 17:41:58 2020 +0200

    plug-ins: change export dialog title when exporting as AVIF.
    
    Even though "Export Image as HEIF" is not technically wrong (AVIF is AV1
    encoding inside HEIF container), it is better to be more accurate.
    
    Moreover as Daniel Novomesky was explaining in a MR, nowadays when we
    say "HEIF", we usually mean "HEIC", whereas you'd use the explicit
    "AVIF" naming for HEIF/AV1 images. This seems confirmed by Wikipedia
    which says that HEIC is the "implied default codec for HEIF".
    
    So let's just make the AVIF vs HEIF distinction here (I could have used
    AVIF vs. HEIC which is even more explicit but I decided to keep the
    less-specific yet more used HEIF naming).

 plug-ins/common/file-heif.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/plug-ins/common/file-heif.c b/plug-ins/common/file-heif.c
index f27350ff49..54b7f9bff9 100644
--- a/plug-ins/common/file-heif.c
+++ b/plug-ins/common/file-heif.c
@@ -2253,7 +2253,8 @@ save_dialog (GimpProcedure *procedure,
 
   dialog = gimp_procedure_dialog_new (procedure,
                                       GIMP_PROCEDURE_CONFIG (config),
-                                      _("Export Image as HEIF"));
+                                      g_strcmp0 (gimp_procedure_get_name (procedure), SAVE_PROC_AV1) == 0 ?
+                                      _("Export Image as AVIF") : _("Export Image as HEIF"));
 
   main_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 12);
   gtk_container_set_border_width (GTK_CONTAINER (main_vbox), 12);


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