[mapserver-commits] r10856 - trunk/mapserver
svn at osgeo.org
svn at osgeo.org
Wed Jan 12 14:53:28 EST 2011
Author: assefa
Date: 2011-01-12 11:53:28 -0800 (Wed, 12 Jan 2011)
New Revision: 10856
Modified:
trunk/mapserver/mapimageio.c
Log:
problem loading 8bit pngs #3656
Modified: trunk/mapserver/mapimageio.c
===================================================================
--- trunk/mapserver/mapimageio.c 2011-01-12 18:29:38 UTC (rev 10855)
+++ trunk/mapserver/mapimageio.c 2011-01-12 19:53:28 UTC (rev 10856)
@@ -743,7 +743,8 @@
png_set_gray_to_rgb(png_ptr);
png_set_bgr(png_ptr);
- if (color_type == PNG_COLOR_TYPE_RGB || color_type == PNG_COLOR_TYPE_GRAY)
+ if (color_type == PNG_COLOR_TYPE_RGB || color_type == PNG_COLOR_TYPE_GRAY ||
+ color_type == PNG_COLOR_TYPE_PALETTE)
png_set_add_alpha(png_ptr, 0xff, PNG_FILLER_AFTER);
png_read_update_info(png_ptr, info_ptr);
More information about the mapserver-commits
mailing list