OSDN Git Service

* This is a test commit.
authorAtsushi Konno <atkonn@gmail.com>
Tue, 2 Aug 2011 21:34:12 +0000 (06:34 +0900)
committerAtsushi Konno <atkonn@gmail.com>
Tue, 2 Aug 2011 21:34:12 +0000 (06:34 +0900)
    Using a small tree-depth of 4.
    Because MagickQuantizeImage() was very slow.

src/chxj_img_conv_format.c

index 0ed36a8..2f55765 100644 (file)
@@ -1456,7 +1456,7 @@ s_fixup_color(MagickWand *magick_wand, request_rec *r, device_table *spec, img_c
     if (MagickQuantizeImage(magick_wand,
                            spec->color,
                            RGBColorspace,
-                           0,
+                           4,   /* tree depth of 4 */
                            1,
                            0) == MagickFalse) {
       EXIT_MAGICK_ERROR();
@@ -1874,7 +1874,8 @@ s_send_cache_file(
           fname = apr_pstrcat(r->pool, fname, ".gif");
         }
         else if (ext && strcasecmp(".gif", ext) != 0) {
-          *ext = 0;
+DBG(r, "REQ[%X]", TO_ADDR(r));
+          *ext = '\0';
           fname = apr_pstrcat(r->pool, fname, ".gif");
         }
       }