Skip to content

Commit

Permalink
use AGG/PNG8 for error image. show GD in version
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Apr 8, 2012
1 parent 7d18c5d commit 51413e4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion maperror.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ void msWriteErrorImage(mapObj *map, char *filename, int blank) {

/* Default to GIF if no suitable GD output format set */
if (format == NULL || !MS_RENDERER_PLUGIN(format) || !format->vtable->supports_bitmap_fonts)
format = msCreateDefaultOutputFormat( NULL, "GD/PC256", "gif" );
format = msCreateDefaultOutputFormat( NULL, "AGG/PNG8", "png" );

if(!format->transparent) {
if(map && MS_VALID_COLOR(map->imagecolor)) {
Expand Down Expand Up @@ -525,6 +525,9 @@ char *msGetVersion() {
#endif
#ifdef USE_PROJ
strcat(version, " SUPPORTS=PROJ");
#endif
#ifdef USE_GD
strcat(version, " SUPPORTS=GD");
#endif
strcat(version, " SUPPORTS=AGG");
strcat(version, " SUPPORTS=FREETYPE");
Expand Down

0 comments on commit 51413e4

Please sign in to comment.