ab558bd30d088b3490661c98ce6fb665fd00e076 braney Fri Jul 2 07:48:40 2010 -0700 switch to using PNG diff --git src/ameme/ameme.c src/ameme/ameme.c index ce9a7c9..835ea29 100644 --- src/ameme/ameme.c +++ src/ameme/ameme.c @@ -2452,12 +2452,21 @@ fprintf(htmlOut, "<H3>Graphical Summary of Profile Hits</H3>\n"); fprintf(htmlOut, "Colors represent different profiles. Darker colors represent\n" "stronger matches to profile.\n"); +#ifdef USE_PNG +if (gifName == NULL) + { + makeTempName(&gifTn, "imp", ".png"); + gifName = gifTn.forCgi; + } +mgSavePng(mg, gifName, FALSE); +#else if (gifName == NULL) { makeTempName(&gifTn, "imp", ".gif"); gifName = gifTn.forCgi; } mgSaveGif(mg, gifName, FALSE); +#endif chmod(gifName, 0666); mgFree(&mg); fprintf(htmlOut, "<IMG SRC=\"%s\" WIDTH=%d HEIGHT=%d BORDER=0>\n",