采用 PicGo客户端 + Github + Cloudflare Pages+ thumbsup 的方案实现完全脱离自托管服务器的自建静态渲染图床网站.
效果好像还行, 就是Cloudflare编译网站的时间比较长, PicGo每上传一个图片都要重新编译一遍, 每次都得等个一分多钟才能加载好. ~~一时半会不知道要传什么图片, 就随便截图群里的几张扔上去了, 23333)
使用项目概览:
- PicGo: 客户端上传程序
- flutter-picgo:手机客户端上传程序
- Github:图片仓库存储
- Gitee:国内仓库镜像存储
- Thumbsup:静态相册网站程序
- Cloudflare Pages:网站托管编译+CDN镜像
- Jsdelivr:额外CDN镜像提供
- hub-mirror-action:Github Action同步至Gitee
npm install -g thumbsup && thumbsup --config config.json
托管在Cloudflare Pages上的图片有经过Thumbsup相册的处理,可以实现略缩图,原图,水印图的处理,总的来说,十分牛逼,就是每次都要从头构建导致刷新速度有点慢x
# Pages
https://smgimg.pages.dev/
# IMC.RE
https://img.imc.re/
# 略缩图
https://img.imc.re/media/small/
# 处理图
https://img.imc.re/media/large/
example:
![CF_IMC](https://img.imc.re/logo/imc.re.png)
![CF_small](https://img.imc.re/media/small/wallpaper/bg.jpg)
![CF_large](https://img.imc.re/media/large/wallpaper/bg.jpg)
example:
https://imcphotos.vercel.app/
# example:
![GithubRaw](https://imcphotos.vercel.app/master/logo/imc.re.png)
example:
https://gitee.com/smgoro_0/photos/raw/master/
# example:
![Gitee](https://gitee.com/smgoro_0/photos/raw/master/logo/imc.re.png)
example:
# 刷新链接
https://purge.jsdelivr.net/gh/SMGCDN/photos/
# 请求链接
https://cdn.jsdelivr.net/gh/SMGCDN/photos/
https://gcore.jsdelivr.net/gh/SMGCDN/photos/
# example:
![jsdelivr](https://cdn.jsdelivr.net/gh/SMGCDN/photos/logo/imc.re.png)
example:
https://raw.githubusercontent.com/smgcdn/photos/master/
# example:
![GithubRaw](https://raw.githubusercontent.com/smgcdn/photos/master/logo/imc.re.png)
example: