atom-picgo
Atom Plugin for PicGo Uploader
Provide full path to the config.json
file in settings. By default it will look for picgo.json
in project directory.
File name can be anything, as long as the extension is .json
.
When no config is provided, PicGo will default to smms
Use ctrl + alt + v
to paste image link
View Changelogs here
PicGo config
Generate a PicGo config by referring this guide
Here is a rough English translation from the guide. (I do not know chinese, but I could figure out the parameters. I mostly used Google Translate to understand stuff)
The config must be in given json format:
{
"picBed": {
"uploader": "smms", //select among given different uploaders.
//uploader config
"smms": {
"token": ""
}
}
}
Uploaders
Default is smms, even without providing any config file in package settings, as per what I observed during tests.
Multiple uploader configurations can be set. But PicGo will only use whatever is set in uploader
field value.
SM.MS
{
"picBed": {
"uploader": "smms",
"smms": {
"token": "" // your api token
}
}
}
Qiniu
{
"picBed": {
"uploader": "qiniu",
"qiniu": {
"accessKey": "",
"secretKey": "",
"bucket": "", // storage bucket
"url": "", // customized domain
"area": "z0" | "z1" | "z2" | "na0" | "as0", // storage area
"options": "", // URL suffix
"path": "" // storage path
}
}
}
Upyun
{
"picBed": {
"uploader": "upyun",
"upyun": {
"bucket": "", // storage bucket, note that v4 is different from v5
"operator": "", // operator
"password": "", // password
"options": "", // URL suffix
"path": "" // storage path
"url": "", // customized domain
}
}
}
Tencent Cloud COS
{
"picBed": {
"uploader": "tcyun",
"tcyun": {
"secretId": "",
"secretKey": "",
"bucket": "", // storage bucket, note that v4 is different from v5
"appId": "",
"area": "", // storage area
"path": "" // storage path
"customUrl": "", // customized domain
"version": "v5" | "v4" // COS version
}
}
}
GitHub
{
"picBed": {
"uploader": "github",
"github": {
"repo": "", // user/repo
"token": "", // github token
"path": "" // storage path
"customUrl": "", // customized domain
"branch": "" // branch, main by default
}
}
}
Alibaba Cloud OSS
{
"picBed": {
"uploader": "aliyun",
"aliyun": {
"accessKeyId": "",
"accessKeySecret": "",
"bucket": "", // storage bucket
"area": "", // storage area
"path": "" // storage path
"customUrl": "", // customized domain
}
}
}
Imgur
{
"picBed": {
"uploader": "imgur",
"imgur": {
"clientId": "", // your clientId
"proxy": "" // proxy address, only http supported
}
}
}
HTTP proxy
{
"picBed": {
"uploader": "proxy",
"proxy": {
"proxy": "" // proxy address, only http supported
}
}
}