6eab7fc47402f1ce34ed331ae80f5bcbee54da82 braney Thu Dec 16 13:30:33 2010 -0800 remove USE_PNG and GIF support #1323 diff --git src/ameme/ameme.c src/ameme/ameme.c index 835ea29..251c8e5 100644 --- src/ameme/ameme.c +++ src/ameme/ameme.c @@ -2440,45 +2440,36 @@ DNA base = dna[j]; if (base == 0) break; colorTextOut(base, colors[j]); } yoff += barHeight + border; fprintf(htmlOut, "\n"); } /* Tell .html where the gif is. */ horizontalLine(); blackText(); 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", gifName, pixWidth, pixHeight); freeMem(colors); /* Free 2-D array for storing positions. */ for (i=0; i<profCount; ++i) { for (j=0; j<seqCount; ++j) freePositionList(&posMatrix[i][j]); freeMem(posMatrix[i]); } freeMem(posMatrix);