2018-12-07 图床的决定

一开始是打算使用七牛云的图床的,后来发现2018年8月开始七牛云域名变成30天的测试域名了。这个坑显然不能入啊

不过Mweb可以图片直接上传到图床里,这很棒棒啊

可以直接用七牛云上传诶
但是似乎必须要有个域名才可以

考虑使用新浪图床

https://github.com/J3n5en/sinaPicHostingApi

这里有个超棒的上传工具

配置的过程如下

  1. git clone https://github.com/J3n5en/sinaPicHostingApi.git克隆项目

  2. yarn安装依赖(电脑上没有yarn,又下载安装了一下

  3. 修改config.json

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
        {
    "auth": {
    "username": "", // 新浪账号
    "password": "" // 新浪密码
    },
    "port": 8088, // api监听端口
    "url": "/upload", //api url
    "default": {
    "protocol": "https", // 默认的协议 ['http','https']
    "size": "large" // 默认的图片大小{'large':'原图','mw690':'中等尺寸':'thumbnail':'缩略图'}
    }
    }
  4. node index.js运行

  5. Mweb图床上面设置就可以了。

  1. Command + E打开外部模式

插入的图片自动可以上传到微博图床,哇棒耶。


https://sspai.com/post/43598
一篇很好的文章


更新 2021-01-19

现在用GitHub做图床了!