Ticket #25892

MagickQuantizeImageが非常に重い

Date d'ouverture: 2011-08-03 03:27 Dernière mise à jour: 2011-08-03 18:19

Rapporteur:
Propriétaire:
Type:
État:
Ouvert [Owner assigned]
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
9 - le plus élevé
Sévérité:
9 - le plus élevé
Résolution:
Aucun
Fichier:
Aucun

Détails

チケット #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
Commentaire

treedepth = 4 で対処する

2011-08-03 18:19 Updated by: konn
Commentaire
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

Modifier

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