26b91ba14a4161e3138cafd0e55c5d9917fa77bd braney Sun Jul 4 13:00:32 2010 -0700 more GIF to PNG changes diff --git src/weblet/counter/counter.c src/weblet/counter/counter.c index 6e4638f..4b67685 100755 --- src/weblet/counter/counter.c +++ src/weblet/counter/counter.c @@ -86,7 +86,12 @@ mg = mgNew(1, 1); else mg = makeCountPic(count, mgMediumFont()); +#ifdef USE_PNG +fprintf(stdout, "Content-type: image/png\n\n"); +mgSaveToPng(stdout, mg, FALSE); +#else fprintf(stdout, "Content-type: image/gif\n\n"); mgSaveToGif(stdout, mg, FALSE); +#endif return 0; }