break;
#endif
-#if 0
case FORMAT_GD:
gdImageGd(im, job->output_file);
break;
#ifdef HAVE_GD_GIF
case FORMAT_WBMP:
- /* Use black for the foreground color for the B&W wbmp image. */
-//FIXME - black not defined - is it really needed?
- gdImageWBMP(im, black, job->output_file);
+ {
+ /* Use black for the foreground color for the B&W wbmp image. */
+ int black = gdImageColorResolveAlpha(im, 0, 0, 0, gdAlphaOpaque);
+ gdImageWBMP(im, black, job->output_file);
+ }
break;
#endif
+#if 0
+/* libgd only supports reading of xpm files */
#ifdef HAVE_GD_XPM
case FORMAT_XBM:
gdImageXbm(im, job->output_file);
#endif
-
#endif
break;
default:
#ifdef HAVE_GD_GIF
{FORMAT_GIF, "gif:cairo", 10, &gd_engine, &device_features_gd},
+ {FORMAT_WBMP, "wbmp:cairo", -1, &gd_engine, &device_features_gd},
#endif
#ifdef HAVE_GD_JPEG
{FORMAT_PNG, "png:cairo", -1, &gd_engine, &device_features_gd},
#endif
-#if 0
{FORMAT_GD, "gd:cairo", -1, &gd_engine, &device_features_gd},
{FORMAT_GD2, "gd2:cairo", -1, &gd_engine, &device_features_gd},
-#ifdef HAVE_GD_GIF
- {FORMAT_WBMP, "wbmp:cairo", -1, &gd_engine, &device_features_gd},
-#endif
-
+#if 0
+/* libgd only supports reading of xpm files */
#ifdef HAVE_GD_XPM
{FORMAT_XBM, "xbm:cairo", -1, &gd_engine, &device_features_gd},
#endif