write down,forget
adidas eqt support ultra primeknit vintage white coming soon adidas eqt support ultra boost primeknit adidas eqt support ultra pk vintage white available now adidas eqt support ultra primeknit vintage white sz adidas eqt support ultra boost primeknit adidas eqt adv support primeknit adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red white adidas eqt support ultra boost turbo red adidas eqt support ultra whiteturbo adidas eqt support ultra boost off white more images adidas eqt support ultra boost white tactile green adidas eqt support ultra boost beige adidas eqt support ultra boost beige adidas eqt support refined camo drop adidas eqt support refined camo drop adidas eqt support refined running whitecamo adidas eqt support 93 primeknit og colorway ba7506 adidas eqt running support 93 adidas eqt support 93

GraphicsMagick+lua-nginx-module+nginx=实时缩略图服务

<Category: Linux, 存储> 查看评论

或者使用openresty安装包,集成好了nginx各种组件(还是换这种靠谱)。

错误处理

gm convert /home/wwwroot/st.xxx/images/xxxxx.jpg.80×80.jpg -thumbnail 100×100 -background gray -gravity center -extent 100×100 output.jpg;

http://www.graphicsmagick.org/GraphicsMagick.html#details-thumbnail

.con配置

上图:

后端获取文件切换成weed-fs的反向代理,本地文件存储路径再规划一下,或者本地不存,前端加一层varnish,自动处理过期静态缓存,这样整个架构基本完成了。

http://wiki.nginx.org/HttpLuaModuleZh
http://www..org/
http://luajit.org/install.html
https://github.com/chaoslawful/lua-nginx-module/
http://www.iteye.com/topic/1125126?page=2
http://www.graphicsmagick.org/GraphicsMagick.html#details-thumbnail

本文来自: GraphicsMagick+lua-nginx-module+nginx=实时缩略图服务