6aff4099034ccd36edc3f56358b844011f1429f1
braney
  Thu Jul 1 14:34:11 2010 -0700
use png instead of gif if USE_PNG is set
diff --git src/lib/gifLabel.c src/lib/gifLabel.c
index 748b9f2..88c5fde 100644
--- src/lib/gifLabel.c
+++ src/lib/gifLabel.c
@@ -77,6 +77,12 @@
 struct memGfx *straight = altColorLabels(labels, labelCount, height);
 struct memGfx *rotated = mgRotate90(straight);
 struct memGfx *existing = NULL;
+#ifdef USE_PNG
+struct tempName tn;
+makeTempName(&tn, "gifLabelVertTemp", ".png");
+mgSavePng(rotated, tn.forCgi, FALSE); 
+rename(tn.forCgi, fileName);
+#else
 if (fileExists(fileName))
     existing = mgLoadGif(fileName);
 /* the savings here is in the user's own browser cache - not updated if no change */
@@ -87,6 +93,7 @@
     mgSaveGif(rotated, tn.forCgi, FALSE); 
     rename(tn.forCgi, fileName);
     }
+#endif
 mgFree(&straight);
 mgFree(&rotated);
 if (existing)