OSDN Git Service
(root)
/
modchxj
/
mod_chxj.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3065c73
)
* This is a test commit.
author
Atsushi Konno
<atkonn@gmail.com>
Tue, 2 Aug 2011 21:34:12 +0000
(06:34 +0900)
committer
Atsushi 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
patch
|
blob
|
history
diff --git
a/src/chxj_img_conv_format.c
b/src/chxj_img_conv_format.c
index
0ed36a8
..
2f55765
100644
(file)
--- 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();
@@
-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");
}
}