[gimp] file-ps: Explicitly specify image precision during load



commit 4955900a5cf4cb90f54e1e1d005adadeb1c13e50
Author: Mukund Sivaraman <muks banu com>
Date:   Tue May 14 13:39:06 2013 +0530

    file-ps: Explicitly specify image precision during load
    
    It works even without this patch, but it's better to specify the
    precision when we know it.

 plug-ins/common/file-ps.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/file-ps.c b/plug-ins/common/file-ps.c
index 84fd739..1b83ede 100644
--- a/plug-ins/common/file-ps.c
+++ b/plug-ins/common/file-ps.c
@@ -1800,7 +1800,8 @@ create_new_image (const gchar        *filename,
       gdtype = GIMP_RGB_IMAGE;
     }
 
-  image_ID = gimp_image_new (width, height, type);
+  image_ID = gimp_image_new_with_precision (width, height, type,
+                                            GIMP_PRECISION_U8);
   gimp_image_undo_disable (image_ID);
 
   tmp = g_strdup_printf ("%s-%d", filename, pagenum);


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