diff options
| -rw-r--r-- | ext/gd/gd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/gd/gd.c b/ext/gd/gd.c index ad2db04a3c..ae835a8db7 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -3755,9 +3755,11 @@ static void _php_image_bw_convert(gdImagePtr im_org, gdIOCtx *out, int threshold return; } +#if HAVE_LIBGD20 if (im_org->trueColor) { gdImageTrueColorToPalette(im_org, 1, 256); } +#endif for (y = 0; y < dest_height; y++) { for (x = 0; x < dest_width; x++) { |
