-
Notifications
You must be signed in to change notification settings - Fork 9.6k
twitter输出图片不是原图 #1249
Copy link
Copy link
Closed
Description
路由地址
预期是什么?
现在输出的图片是这样的:
https://pbs.twimg.com/media/\w+.jpg
这种图片貌似限制长边不超过1200px
实际发生了什么?
实际上推特的原图是这样的:
https://pbs.twimg.com/media/\w+\?format=(jpg|png|...)&name=orig
这才是真正的原图,不限制长宽的。
更详细,甚至是其他站点的规则,可以参考这个脚本:
https://greasyfork.org/zh-CN/scripts/2312-resize-image-on-open-image-in-new-tab
部署相关信息
| Env | Value |
|---|---|
| OS | |
| Node version | |
| if Docker, version |
额外信息(日志、报错等)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels