nginx的HttpImageFilterModule模块
nginx的HttpImageFilterModule模块使用了gd来处理图像,简单但功能不足,不知道是否有人能用ImageMagick或是GraphicsMagick来处理...
以下为nginx配置片段
location / {
root /var/www/html;
index index.html index.htm;
}
location ~* ^/small/w_(\d+)/h_(\d+)/(.*)$ {
rewrite /small/w_(\d+)/h_(\d+)/(.*)$ /$3 break;
image_filter resize $1 $2;
root /var/www/html;
index index.html index.htm;
}
参考资料:
http://wiki.nginx.org/HttpImageFilterModule
http://cnctblog.com/?p=633
以下为nginx配置片段
location / {
root /var/www/html;
index index.html index.htm;
}
location ~* ^/small/w_(\d+)/h_(\d+)/(.*)$ {
rewrite /small/w_(\d+)/h_(\d+)/(.*)$ /$3 break;
image_filter resize $1 $2;
root /var/www/html;
index index.html index.htm;
}
参考资料:
http://wiki.nginx.org/HttpImageFilterModule
http://cnctblog.com/?p=633
此日志的引用通告 URL:
http://www.imx365.net/blog/tb.cgi/21152
其实我一直都不知道您在想些什么,有什么感触。说真的,您的评论对于我来说很重要...
还没有人评论过
发表评论

(访客)