2b211e25eb6dbe0a55690c87d2bccf83a34f1e1f braney Thu Jul 1 15:18:45 2010 -0700 fix phyloGif to write out PNG, and make sure no one can write out GIF if USE_PNG is set diff --git src/hg/phyloGif/phyloGif.c src/hg/phyloGif/phyloGif.c index 5fe2637..9577dbe 100644 --- src/hg/phyloGif/phyloGif.c +++ src/hg/phyloGif/phyloGif.c @@ -723,10 +723,17 @@ printf("Content-type: image/gif\r\n"); printf("\r\n"); } +#ifdef USE_PNG +if (!mgSaveToPng(stdout, mg, FALSE)) + { + errAbort("Couldn't save png to stdout"); + } +#else if (!mgSaveToGif(stdout, mg, FALSE)) { errAbort("Couldn't save gif to stdout"); } +#endif if (cgiOptionalString("phyloGif_submit")) cartCheckout(&cart);