Tíquete #25892

MagickQuantizeImageが非常に重い

: 2011-08-03 03:27 Última Atualização: 2011-08-03 18:19

Relator:
Dono:
Tipo:
Estado:
Aberto [Owner assigned]
Componente:
(Nenhum)
Marcos:
(Nenhum)
Prioridade:
9 - Highest
Gravidade:
9 - Highest
Resolução:
Nenhum
Arquivo:
Nenhum

Details

チケット #25883

Ticket History (3/3 Histories)

2011-08-03 03:27 Updated by: konn
  • New Ticket "MagickQuantizeImageが非常に重い" created
2011-08-03 18:16 Updated by: konn
Comentário

treedepth = 4 で対処する

2011-08-03 18:19 Updated by: konn
Comentário
diff --git a/src/chxj_img_conv_format.c b/src/chxj_img_conv_format.c
index 0ed36a8..91b0949 100644
--- a/src/chxj_img_conv_format.c
+++ b/src/chxj_img_conv_format.c
@@ -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();
@@ -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();

Attachment File List

No attachments

Editar

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Login