From 09abb3bc602914f65ce36ff5fc969c80dbf3c639 Mon Sep 17 00:00:00 2001 From: Atsushi Konno Date: Thu, 4 Aug 2011 21:38:26 +0900 Subject: [PATCH] * Using a small tree-depth of 4. Because MagickQuantizeImage() was very slow. http://sourceforge.jp/ticket/browse.php?group_id=1608&tid=25892 --- src/chxj_img_conv_format.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/chxj_img_conv_format.c b/src/chxj_img_conv_format.c index a678bb62..db7fa062 100644 --- a/src/chxj_img_conv_format.c +++ b/src/chxj_img_conv_format.c @@ -1428,7 +1428,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(); @@ -1444,7 +1444,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(); -- 2.11.0