Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webp优化无法正常工作 #894

Closed
Deepsea-CN opened this issue Jun 2, 2024 · 4 comments
Closed

webp优化无法正常工作 #894

Deepsea-CN opened this issue Jun 2, 2024 · 4 comments
Labels
help help

Comments

@Deepsea-CN
Copy link

Deepsea-CN commented Jun 2, 2024

使用manifest生成webp优化图片后
在后台添加地址为https://halloworlds.cn/wp-json/sakura/v1/imagejson/sakura/v1/image
后无法加载出图片,直接访问目标链接提示
"code": "rest_no_route",
"message": "未找到匹配 URL 和请求方式的路由。",
"data": {
"status": 404
}
}
是我的链接填的不对还是文件位置放的不对啊,文档只写了生成之后就填写url即可,但是不论留空还是填路径或是填这个找到的api的路径均不能正常加载,目前只能放在外部用外部api地址调用

@Deepsea-CN Deepsea-CN added the help help label Jun 2, 2024
Copy link

github-actions bot commented Jun 2, 2024

任何人都可以处理此问题。
请务必在您的 pull request 中引用此问题。
感谢你的贡献! (o゜▽゜)o☆

Copy link

github-actions bot commented Jun 2, 2024

@Deepsea-CN,感谢你给 sakurairo 提出了 issue。ヾ(≧▽≦*)o
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@Deepsea-CN
Copy link
Author

https://halloworlds.cn/wp-json/sakura/v1/image/manifest/webp/9eeeeae98bb6c1bdc7f36a8ee84dcf40.th.webp
直接访问后最终的地址如上,会报上面的404
我的图片都放在manifest的那些文件夹里

@KotoriK
Copy link
Collaborator

KotoriK commented Jun 28, 2024

试试https://halloworlds.cn/wp-json/sakura/v1/image/cover

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help help
Projects
None yet
Development

No branches or pull requests

2 participants