Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sumumm/fanhuascreenshot
Github Action友链截图
https://github.com/sumumm/fanhuascreenshot
Last synced: 4 days ago
JSON representation
Github Action友链截图
- Host: GitHub
- URL: https://github.com/sumumm/fanhuascreenshot
- Owner: sumumm
- Created: 2022-02-11T23:35:33.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-10T01:04:36.000Z (10 days ago)
- Last Synced: 2024-11-10T02:17:33.005Z (10 days ago)
- Language: Shell
- Size: 6.1 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 友链自动截图
**【参考项目】**
参考项目
项目地址
ChenYFan/ScreenShot
https://github.com/ChenYFan/ScreenShot
Akilarlxh/ScreenShot
https://github.com/Akilarlxh/ScreenShot
**【步骤】**
向按照格式提交PR,**禁止更改大小参数**
添加一行
```
curl https://image.thum.io/get/width/400/crop/800/allowJPG/wait/20/noanimate/https:/// -o .jpg
```**【说明】**
截图默认大小 400\*266 默认宽度为 width 后面的像素值。crop的计算方法有些不同,虽然官方文档说是高度像素,但是实际测试发现应该是height=width*(crop/1200)。具体文档可以访问 https://image.thum.io 查看。
可在看到预览图
**【引用格式】**
```html
https://cdn.jsdelivr.net/gh/[GithubUserName]/[ScreenShot-RepositoryName]@gh-pages/[friend_link].jpghttps://cdn.jsdelivr.net/gh/qidaink/FanhuaScreenShot@gh-pages/qidaink.gitee.io.jpg
```**【注意】**
可能不适配 pjax:本来是直接txt文件批量下载的,但是GithubAction的curl不能识别大括号下载方式