Update of /cvsroot/ufraw/ufraw
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv17012

Modified Files:
        ufraw-gimp.c 
Log Message:
Make ufraw-gimp failover to GIMP file loader for non-raw *.jpeg and *.tiff 
files.

Index: ufraw-gimp.c
===================================================================
RCS file: /cvsroot/ufraw/ufraw/ufraw-gimp.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -d -r1.74 -r1.75
--- ufraw-gimp.c        21 Feb 2013 05:00:07 -0000      1.74
+++ ufraw-gimp.c        10 Mar 2013 17:15:11 -0000      1.75
@@ -193,9 +193,10 @@
     gimp_ui_init("ufraw-gimp", TRUE);
 
     uf = ufraw_open(filename);
-    /* if UFRaw fails on jpg or tif then open with GIMP */
+    /* if UFRaw fails on jpg/jpeg or tif/tiff then open with GIMP */
     if (uf == NULL) {
-        if (!strcasecmp(filename + strlen(filename) - 4, ".jpg")) {
+        if (!strcasecmp(filename + strlen(filename) - 4, ".jpg") ||
+                !strcasecmp(filename + strlen(filename) - 5, ".jpeg")) {
             if (loadThumbnail)
                 *return_vals = gimp_run_procedure2("file_jpeg_load_thumb",
                                                    nreturn_vals, nparams, 
param);
@@ -204,7 +205,8 @@
                                                    nreturn_vals, nparams, 
param);
             gdk_threads_leave();
             return;
-        } else if (!strcasecmp(filename + strlen(filename) - 4, ".tif")) {
+        } else if (!strcasecmp(filename + strlen(filename) - 4, ".tif") ||
+                   !strcasecmp(filename + strlen(filename) - 5, ".tiff")) {
             if (!loadThumbnail)
                 *return_vals = gimp_run_procedure2("file_tiff_load",
                                                    nreturn_vals, nparams, 
param);


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
ufraw-cvs mailing list
ufraw-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ufraw-cvs

Reply via email to