[gimp] plug-ins: make the JP2 loading errors more accurate.



commit ca1304da19abb137904ab5f5655e5c10c3ba58c5
Author: Jehan <jehan girinstud io>
Date:   Fri Mar 9 16:43:36 2018 +0100

    plug-ins: make the JP2 loading errors more accurate.

 plug-ins/common/file-jp2-load.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/plug-ins/common/file-jp2-load.c b/plug-ins/common/file-jp2-load.c
index 6bf172a..4a4f654 100644
--- a/plug-ins/common/file-jp2-load.c
+++ b/plug-ins/common/file-jp2-load.c
@@ -865,7 +865,7 @@ load_image (const gchar  *filename,
   if (opj_end_decompress (codec, stream) != OPJ_TRUE)
     {
       g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
-                   _("Couldn't decode JP2 image in '%s'."),
+                   _("Couldn't decompress JP2 image in '%s'."),
                    gimp_filename_to_utf8 (filename));
       goto out;
     }
@@ -887,7 +887,7 @@ load_image (const gchar  *filename,
       if (! color_sycc_to_rgb (image))
         {
           g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
-                       _("Couldn't decode JP2 image in '%s'."),
+                       _("Couldn't convert YUV JP2 image '%s' to RGB."),
                        gimp_filename_to_utf8 (filename));
           goto out;
         }
@@ -897,7 +897,7 @@ load_image (const gchar  *filename,
       if (! color_cmyk_to_rgb (image))
         {
           g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
-                       _("Couldn't decode JP2 image in '%s'."),
+                       _("Couldn't convert CMYK JP2 image in '%s' to RGB."),
                        gimp_filename_to_utf8 (filename));
           goto out;
         }
@@ -907,7 +907,7 @@ load_image (const gchar  *filename,
       if (! color_esycc_to_rgb (image))
         {
           g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
-                       _("Couldn't decode JP2 image in '%s'."),
+                       _("Couldn't convert YCC JP2 image in '%s' to RGB."),
                        gimp_filename_to_utf8 (filename));
           goto out;
         }
@@ -934,7 +934,7 @@ load_image (const gchar  *filename,
   else
     {
       g_set_error (error, G_FILE_ERROR, G_FILE_ERROR_FAILED,
-                   _("Couldn't decode JP2 image in '%s'."),
+                   _("Unsupported color space in JP2 image '%s'."),
                    gimp_filename_to_utf8 (filename));
       goto out;
     }


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