V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
duola
V2EX  ?  NGINX

Nginx 图片剪裁模块 image_filter 没有返回值。

  •  
  •   duola · 2017-03-28 21:04:16 +08:00 · 3128 次点击
    这是一个创建于 2598 天前的主题,其中的信息可能已经有所发展或是发生改变。
    location ~ .*.(gif|jpg|jpeg|png|bmp)!info$ {
    alias /HOME/img10/;
    image_filter size;
    access_log off;
    }

    返回的是{},有朋友试到过吗?
    1 条回复  ?  2018-07-26 15:11:20 +08:00
    tttale
        1
    tttale  
       2018-07-26 15:11:20 +08:00
    location 改用 /uri/这种路径匹配,不过有些图片会返回 415,看 error log 是 image filter: too big response: xxxx while sending response to client,小一点的图片则正常,不确定是否是图片大小引起的。。。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3385 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:02 · PVG 20:02 · LAX 05:02 · JFK 08:02
    Developed with CodeLauncher
    ? Do have faith in what you're doing.


    http://www.vxiaotou.com