Index: src/setup.c
===================================================================
--- src/setup.c
+++ src/setup.c
@@ -1087,11 +1087,11 @@
 
 /*
 ** WEBPAGE: setup_logo
 */
 void setup_logo(void){
-  const char *zMime = "image/gif";
+  const char *zMime = db_get("logo-mimetype","image/gif");
   const char *aImg = P("im");
   int szImg = atoi(PD("im:bytes","0"));
   if( szImg>0 ){
     zMime = PD("im:mimetype","image/gif");
   }

