nginx快速绘制圆形图(ngx_http_circle_gif_module模块)
2014-03-23 00:00
281 查看
nginx官网上有各式各样的第三方模块,今天来介绍一款叫做ngx_http_circle_gif_module。从字面意思来看,他是一个声称圆形图片的模块,实际上也是如此。此模块生成图片比直接在硬盘上读取要快很多,并且可以不用劳烦美工去设计。或者说不用麻烦同学用windows下的画图去话一个圆.功能很简单,指令也很简单。
安装模块参数
如何安装nginx第三方模块》
circle_gif指令 circle_gif 语法: circle_gif 默认值: n/a 配置段: location circle_gif_min_radius 语法: circle_min_radius 默认值: 10 配置段: location 圆形的最小半径, 单位为像素 circle_gif_max_radius 语法: circle_max_radius 默认值: 20 配置段: location 圆形的最大半径, 单位为像素 circle_gif_step_radius 语法: circle_step_radius 默认值: 2 配置段: location The "step" in between generated circle images
circle_gif配置 location /ttlsa_circles { circle_gif; }
circle_gif用法 <背景颜色>/<前景色>/<半径>.gif 例子 http://test.ttlsa.com/ttlsa_circles/ffffff/000000/20.gif ffffff:背景色是白色 000000:前景色是黑色 20:圆形半径为20
circle_gif效果图 [caption id="attachment_3943" align="alignnone" width="501"]
circle_gif[/caption]
参考地址 nginx_circle_gif下载:https://github.com/evanmiller/nginx_circle_gif/ nginx_circle_gif文档:http://wiki.nginx.org/HttpCircleGifModule 站点:
运维生存时间 网址:http://www.ttlsa.com/html/3942.html
安装模块参数
--add-module=path/to/circle_gif/directory具体方法就不在讲述了,可以参考运维生存时间的《
如何安装nginx第三方模块》
circle_gif指令 circle_gif 语法: circle_gif 默认值: n/a 配置段: location circle_gif_min_radius 语法: circle_min_radius 默认值: 10 配置段: location 圆形的最小半径, 单位为像素 circle_gif_max_radius 语法: circle_max_radius 默认值: 20 配置段: location 圆形的最大半径, 单位为像素 circle_gif_step_radius 语法: circle_step_radius 默认值: 2 配置段: location The "step" in between generated circle images
circle_gif配置 location /ttlsa_circles { circle_gif; }
circle_gif用法 <背景颜色>/<前景色>/<半径>.gif 例子 http://test.ttlsa.com/ttlsa_circles/ffffff/000000/20.gif ffffff:背景色是白色 000000:前景色是黑色 20:圆形半径为20
circle_gif效果图 [caption id="attachment_3943" align="alignnone" width="501"]
circle_gif[/caption]
参考地址 nginx_circle_gif下载:https://github.com/evanmiller/nginx_circle_gif/ nginx_circle_gif文档:http://wiki.nginx.org/HttpCircleGifModule 站点:
运维生存时间 网址:http://www.ttlsa.com/html/3942.html
相关文章推荐
- nginx修改upstream不重启的方法(ngx_http_dyups_module模块)
- nginx修改upstream不重启的方法(ngx_http_dyups_module模块)
- nginx限制连接数ngx_http_limit_conn_module模块
- Nginx 的ngx_http_core_module模块
- 详细解释:nginx中ngx_http_rewrite_module模块配置及各个参数含义
- 详细解释:nginx中ngx_http_rewrite_module模块配置及各个参数含义
- nginx限制连接数ngx_http_limit_conn_module模块
- nginx限制连接数ngx_http_limit_conn_module模块
- Nginx密码验证 ngx_http_auth_basic_module模块
- 详细解释:nginx中ngx_http_headers_module模块配置及各个参数含义
- 在CentOS 6.9 x86_64的nginx 1.12.2上开启ngx_http_empty_gif_module模块实录
- 详细解释:nginx中ngx_http_headers_module模块配置及各个参数含义
- nginx限制连接数ngx_http_limit_conn_module模块
- nginx向响应内容中追加内容(ngx_http_addition_module模块)
- nginx修改upstream不重启的方法(ngx_http_dyups_module模块)
- nginx向响应内容中追加内容(ngx_http_addition_module模块)
- 解读nginx第三方模块ngx_http_auth_request_module
- nginx统计响应的http状态码信息(ngx-http-status-code-counter)
- nginx handler ngx_http_core_module
- Nginx-解读内置非默认模块 ngx_http_stub_status_module