Skip to content

Commit

Permalink
完成1.0版本
Browse files Browse the repository at this point in the history
  • Loading branch information
wangmh committed Dec 26, 2011
1 parent 5039cb7 commit 633f387
Show file tree
Hide file tree
Showing 3 changed files with 693 additions and 0 deletions.
35 changes: 35 additions & 0 deletions README
@@ -0,0 +1,35 @@
config example

# location /img/ {
# image_water /home/saint/water.png;
# image_buffer_size 1M;
# }


image_water

Syntax: image_water path

Default: none

Context: location

The path to load the water_image


image_buffer_size

Syntax: image_buffer_size size

Default: 1M

Context: location

Sets the maximux size for reading the image




TODO:
#config the water image position

6 changes: 6 additions & 0 deletions src/config
@@ -0,0 +1,6 @@
ngx_addon_name=ngx_http_image_water_filter_module
HTTP_AUX_FILTER_MODULES="$HTTP_AUX_FILTER_MODULES ngx_http_image_water_filter_module"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $ngx_addon_dir/ngx_http_image_water_filter_module.c"
CORE_INCS="$CORE_INCS /usr/local/include/ImageMagick /usr/include/ImageMagick"
CORE_LIBS="$CORE_LIBS -L/usr/local/lib -L/usr/lib -lMagickWand -lMagickCore -llcms -ltiff -lfreetype -ljpeg -lpng -lfontconfig -lXext -lXt -lSM -lICE -lX11 -lbz2 -lxml2 -lz -lm -lgomp -lpthread"
CFLAGS="$CFLAGS -fopenmp -D_FILE_OFFSET_BITS=64"

0 comments on commit 633f387

Please sign in to comment.