From 403760eaaf879f6030d0665b1f4aa5c95b3deef0 Mon Sep 17 00:00:00 2001 From: "N.N." Date: Sat, 24 May 2008 00:20:06 +0000 Subject: file formats to uppercase svn path=/trunk/externals/pdvjtools/; revision=9886 --- imagegrid/imagegrid.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'imagegrid/imagegrid.c') diff --git a/imagegrid/imagegrid.c b/imagegrid/imagegrid.c index ccd3dc4..0d7c779 100644 --- a/imagegrid/imagegrid.c +++ b/imagegrid/imagegrid.c @@ -480,14 +480,23 @@ int format_adequat(path nomF){ t1 = strtok(NULL,".") ) strcpy(extensio,t1); if(strcmp(extensio,"bmp")==0) retorn = 1; + if(strcmp(extensio,"BMP")==0) retorn = 1; if(strcmp(extensio,"eps")==0) retorn = 1; + if(strcmp(extensio,"EPS")==0) retorn = 1; if(strcmp(extensio,"gif")==0) retorn = 1; + if(strcmp(extensio,"GIF")==0) retorn = 1; if(strcmp(extensio,"jpg")==0) retorn = 1; + if(strcmp(extensio,"JPG")==0) retorn = 1; if(strcmp(extensio,"jpeg")==0) retorn = 1; + if(strcmp(extensio,"JPEG")==0) retorn = 1; if(strcmp(extensio,"png")==0) retorn = 1; + if(strcmp(extensio,"PNG")==0) retorn = 1; if(strcmp(extensio,"ppm")==0) retorn = 1; + if(strcmp(extensio,"PPM")==0) retorn = 1; if(strcmp(extensio,"tif")==0) retorn = 1; + if(strcmp(extensio,"TIF")==0) retorn = 1; if(strcmp(extensio,"tiff")==0) retorn = 1; + if(strcmp(extensio,"TIFF")==0) retorn = 1; return (retorn); } -- cgit v1.2.1