Closed lizard0126 closed 1 month ago
我也是
Will you also encounter this problem with a much smaller image? Since the log clearly pointed out that your image is too big.
如果图像小得多,您也会遇到这个问题吗?由于日志明确指出您的图像太大。
Looks like #19 is the same problem as this one, I will try to dig it in days. Thanks for the reporting.
看起来 #19 和这个是同样的问题,我会试着在几天内找到它。谢谢你的报道。
Will you also encounter this problem with a much smaller image? Since the log clearly pointed out that your image is too big.
如果图像小得多,您也会遇到这个问题吗?由于日志明确指出您的图像太大。
是的,经过压缩后的图片仍然显示同样的代码
在使用telegram适配器时出现同样的错误。 相同的图片在使用discord适配器时可以正常搜索。
我有个猜测,就是 dc 的图片是 dc 的 cdn 链接,其他平台都是 data url。而 data url 就会触发 414。
所以本质上是必须把图片部署到公网才能搜索。
如果是这样的话那就比较麻烦了,要么要求开搜图功能的设备都接入公网,要么就需要找到临时公网部署的服务来中转图片。
所以本质上是必须把图片部署到公网才能搜索。
如果是这样的话那就比较麻烦了,要么要求开搜图功能的设备都接入公网,要么就需要找到临时公网部署的服务来中转图片。
Since you could upload an image file to search by in the saucenao or ascii2d or any others, maybe we could dig out the upload API and then make it pretend to be a browser.
For example, in ascii2d.net you could construct a POST request to https://ascii2d.net/search/file
with the body data in form data type including file
the image binary and authenticity_token
the CSRF token, then wait for the server give you a 302 redirect location to get the webpage and Bob's your uncle.
既然你可以上传一个图像文件来在 Sausenao 或 ascii2d 或任何其他中搜索,也许我们可以挖掘上传 API,然后让它假装成一个浏览器。
例如,在 ascii2d.net 中,您可以构造一个对https://ascii2d.net/search/file
的 POST 请求,其中的正文数据采用表单数据类型,包括file
图像二进制文件和authenticity_token
CSRF 令牌,然后等待服务器给你一个 302 重定向位置来获取网页,鲍勃是你的叔叔。
在QQ中和koishi的沙盒中均如此 日志如下