[mapserver-commits] r12190 - trunk/mapserver/mapcache/src
svn at osgeo.org
svn at osgeo.org
Fri Aug 26 07:05:39 EDT 2011
Author: tbonfort
Date: 2011-08-26 04:05:39 -0700 (Fri, 26 Aug 2011)
New Revision: 12190
Modified:
trunk/mapserver/mapcache/src/imageio_png.c
Log:
finish wms capabilities
thomas.bonfort | 2010-12-28 20:13:59 +0100 (Tue, 28 Dec 2010)
Modified: trunk/mapserver/mapcache/src/imageio_png.c
===================================================================
--- trunk/mapserver/mapcache/src/imageio_png.c 2011-08-26 11:05:34 UTC (rev 12189)
+++ trunk/mapserver/mapcache/src/imageio_png.c 2011-08-26 11:05:39 UTC (rev 12190)
@@ -124,7 +124,6 @@
geocache_buffer *buffer = NULL;
int compression = ((geocache_image_format_png*)format)->compression_level;
png_structp png_ptr = png_create_write_struct(PNG_LIBPNG_VER_STRING, NULL,NULL,NULL);
- ctx->log(ctx,GEOCACHE_DEBUG,"png no palette");
if (!png_ptr) {
ctx->set_error(ctx, GEOCACHE_IMAGE_ERROR, "failed to allocate png_struct structure");
return NULL;
@@ -1046,8 +1045,6 @@
_geocache_imageio_remap_palette(pixels, image->w * image->h, palette, numPaletteEntries,rgb,a,&num_a);
- ctx->log(ctx,GEOCACHE_DEBUG,"png palette: %d %d\n",numPaletteEntries,num_a);
-
png_set_PLTE(png_ptr, info_ptr, (png_colorp)(rgb),numPaletteEntries);
if(num_a)
png_set_tRNS(png_ptr, info_ptr, a,num_a, NULL);
More information about the mapserver-commits
mailing list