From: John Ellson Date: Mon, 24 Nov 2014 16:34:32 +0000 (-0500) Subject: make gd always generate indexed color pngs, responding to #2502 X-Git-Tag: TRAVIS_CI_BUILD_EXPERIMENTAL~140 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=250243bba9a50675529b3414bfc767b011adb0dd;p=graphviz make gd always generate indexed color pngs, responding to #2502 --- diff --git a/plugin/gd/gvdevice_gd.c b/plugin/gd/gvdevice_gd.c index 3267ba16a..2c50d69e9 100644 --- a/plugin/gd/gvdevice_gd.c +++ b/plugin/gd/gvdevice_gd.c @@ -136,7 +136,7 @@ static void gd_format(GVJ_t * job) #ifdef HAVE_GD_PNG case FORMAT_PNG: - gdImageSaveAlpha(im, TRUE); + gdImageTrueColorToPalette(im, 0, 256); gdImagePngCtx(im, &ctx); break; #endif