[mapguide-commits] r1298 - trunk/MgDev/Common/Stylization

svn_mapguide at osgeo.org svn_mapguide at osgeo.org
Tue Mar 20 11:10:49 EDT 2007


Author: traianstanev
Date: 2007-03-20 11:10:49 -0400 (Tue, 20 Mar 2007)
New Revision: 1298

Modified:
   trunk/MgDev/Common/Stylization/GDRenderer.cpp
Log:
Changed output PNG encoding from interlaced to non-interlaced. Supposedly it is faster to encode non-interlaced PNGs, and this is also confirmed by some measurements I made. PNG compression being extremely slow, every little bit helps.

Modified: trunk/MgDev/Common/Stylization/GDRenderer.cpp
===================================================================
--- trunk/MgDev/Common/Stylization/GDRenderer.cpp	2007-03-20 15:08:08 UTC (rev 1297)
+++ trunk/MgDev/Common/Stylization/GDRenderer.cpp	2007-03-20 15:10:49 UTC (rev 1298)
@@ -250,7 +250,7 @@
         im = (gdImagePtr)m_imout;
 
     // Make output image interlaced (progressive, in the case of JPEG)
-    gdImageInterlace(im, 1);
+    gdImageInterlace(im, 0);
 
     // Make sure the alpha values get saved
     gdImageSaveAlpha(im, 1);



More information about the mapguide-commits mailing list