OSDN Git Service

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

src/chxj_img_conv_format.c

index 2f55765..91b0949 100644 (file)
@@ -1472,7 +1472,7 @@ s_fixup_color(MagickWand *magick_wand, request_rec *r, device_table *spec, img_c
     if (MagickQuantizeImage(magick_wand,
                            spec->color,
                            GRAYColorspace,
-                           0,
+                           4,   /* tree depth of 4 */
                            1,
                            0) == MagickFalse) {
       EXIT_MAGICK_ERROR();