[mapserver-commits] r7960 - trunk/mapserver

svn at osgeo.org svn at osgeo.org
Sun Oct 5 11:59:44 EDT 2008


Author: tbonfort
Date: 2008-10-05 11:59:44 -0400 (Sun, 05 Oct 2008)
New Revision: 7960

Modified:
   trunk/mapserver/maprgbapng.c
Log:
rgba_png: don't interlace by default


Modified: trunk/mapserver/maprgbapng.c
===================================================================
--- trunk/mapserver/maprgbapng.c	2008-10-05 08:09:29 UTC (rev 7959)
+++ trunk/mapserver/maprgbapng.c	2008-10-05 15:59:44 UTC (rev 7960)
@@ -357,10 +357,13 @@
     int bot_idx, top_idx;
     int remap[256];
     int reqcolors = atoi(msGetOutputFormatOption( format, "QUANTIZE_COLORS", "256"));
+    const char *interlace;
     ms_png_info info;
     info.width = gdImageSX(img);
     info.height = gdImageSY(img);
-    if( strcasecmp("ON", msGetOutputFormatOption( format, "INTERLACE", "ON" )) == 0 )
+    interlace = msGetOutputFormatOption( format, "INTERLACE", "OFF" );
+    if( strcasecmp("ON", interlace) == 0 || strcasecmp("YES", interlace) == 0
+            || strcasecmp("1", interlace) == 0)
         info.interlaced=1;
     else
         info.interlaced=0;



More information about the mapserver-commits mailing list