[gimp] file-jpeg: (save) Change the label for restart interval



commit 4e0a48fabce65fed5e8e6c684b0dcea8703fa84a
Author: Mukund Sivaraman <muks banu com>
Date:   Fri Jun 10 23:33:11 2011 +0530

    file-jpeg: (save) Change the label for restart interval
    
    This was discussed in #gimp. The old label was "Frequency (rows)"
    which is misleading. This field is basically converted by libjpeg
    to another value called a restart interval which is stored in a
    JPEG file. The restart interval specifies after how many MCUs
    the restart (syncronization) marker appears in the bitstream.
    It is not easy to explain to a layperson what an MCU is.
    
    The value in the dialog specifies after how many *MCU rows* the
    restart marker appears. This is a libjpeg thing, and libjpeg
    converts it to the restart interval.
    
    I have merely renamed the text label of the field and PDB
    description as the current text implies pixel rows which is not
    the case.
    
    A better alternative is to use the restart interval (in MCUs,
    not MCU rows) as saved in the file itself, which more people
    than users of libjpeg would understand. But even that setting
    is not something that can easily be explained to a layperson.

 plug-ins/file-jpeg/jpeg-save.c |    2 +-
 plug-ins/file-jpeg/jpeg.c      |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/file-jpeg/jpeg-save.c b/plug-ins/file-jpeg/jpeg-save.c
index 522b436..9a005df 100644
--- a/plug-ins/file-jpeg/jpeg-save.c
+++ b/plug-ins/file-jpeg/jpeg-save.c
@@ -936,7 +936,7 @@ save_dialog (void)
                     G_CALLBACK (make_preview),
                     NULL);
 
-  restart_markers_label = gtk_label_new (_("Frequency (rows):"));
+  restart_markers_label = gtk_label_new (_("Interval (MCU rows):"));
   gtk_misc_set_alignment (GTK_MISC (restart_markers_label), 1.0, 0.5);
   gtk_table_attach (GTK_TABLE (table), restart_markers_label, 4, 5, 1, 2,
                     GTK_FILL | GTK_EXPAND, GTK_FILL, 0, 0);
diff --git a/plug-ins/file-jpeg/jpeg.c b/plug-ins/file-jpeg/jpeg.c
index 775e677..e173217 100644
--- a/plug-ins/file-jpeg/jpeg.c
+++ b/plug-ins/file-jpeg/jpeg.c
@@ -123,7 +123,7 @@ query (void)
     { GIMP_PDB_STRING,   "comment",      "Image comment" },
     { GIMP_PDB_INT32,    "subsmp",       "The subsampling option number" },
     { GIMP_PDB_INT32,    "baseline",     "Force creation of a baseline JPEG (non-baseline JPEGs can't be read by all decoders) (0/1)" },
-    { GIMP_PDB_INT32,    "restart",      "Frequency of restart markers (in rows, 0 = no restart markers)" },
+    { GIMP_PDB_INT32,    "restart",      "Interval of restart markers (in MCU rows, 0 = no restart markers)" },
     { GIMP_PDB_INT32,    "dct",          "DCT algorithm to use (speed/quality tradeoff)" }
   };
 



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