Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
693 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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 | |||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -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" |
Oops, something went wrong.