buaazp / zimg

A lightweight and high performance image storage and processing system.
http://zimg.buaa.us
BSD 3-Clause "New" or "Revised" License
2.69k stars 401 forks source link

当传递的md5无法找到对应图片的时候,能否让他返回默认图片 #175

Open MattCraftsCode opened 7 years ago

MattCraftsCode commented 7 years ago

作者你好,请问当传递的md5无法找到对应图片的时候,能否让他返回默认图片。

jafz12 commented 7 years ago

你好,请问你是通过哪种方式取得Md5的值的?

MattCraftsCode commented 7 years ago

通过正常的curl上传,获得的 md5 值, 但在使用时输错了这个 md5,能否让 zimg 返回一张默认的错误图片。

buaazp commented 7 years ago

我了解这个需求,但是还没时间来开发。建议先用nginx配置默认404图片来解决: https://blog.seacoffee.net/557.html

zimg前面加一个nginx来proxy,可以用上很多nginx已经实现的功能。