# picGo_img **Repository Path**: button-tapping/pic-go_img ## Basic Information - **Project Name**: picGo_img - **Description**: me - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-03-11 - **Last Updated**: 2022-04-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # PicGo_img #### 介绍 用picGo图床工具+gitee搭建属于自己的免费图床。 所谓图床工具,就是自动把本地图片转换成链接的一款工具,网络上有很多图床工具,就目前使用种类而言,PicGo 算得上一款比较优秀的图床工具。它是一款用 `Electron-vue` 开发的软件,可以支持微博,七牛云,腾讯云COS,又拍云,GitHub,阿里云OSS,SM.MS,imgur 等8种常用图床,功能强大,简单易用。之前自己在GitHub上搭建过一个,里面可以上传图片并且图片也可以访问,这不是很好的图床吗,可以使用GitHub提供的地址在线访问图片,但是在经过几日的观察,Github上的图片在线访问加载还是有点慢,就想到了Gitee 托管我的图片。 ## 准备工作 1. 首先要有一个gitee帐户 2. 下载picGo图床并安装,下载地址:https://github.com/Molunerfinn/PicGo ## 下载安装picGo图床工具 注意:*windwos* 选择 *.exe*系统,*mac* 系统选择 *dmg* 下载,如果不是下载安装包,想看源码的话,可以选择 `git clone https://github.com/Molunerfinn/PicGo.git` 克隆到本地。我这里下载windwos版的。 ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20210326114746.png) 找到要下载的版本 ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20210326114942.png) 下载完成正常点击下一步即可。 ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20210326114147.png) ## 开始搭建 ### 1、创建一个厂库 在右上角点击加号 ---> 新建厂库 ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20200603230517.png) 写上库的名字(随意)---> 是否开源选公开 ---> 勾选上使用Readme文件初始化这个厂库 ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/202006032301051.png) ### 2、创建私人令牌 点击头像 ---> 设置 ---> 私人令牌 ---> 新生成令牌 ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20200603231001.png) ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20200603231127.png) ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20200603231456.png) 点击提交,输入当前账号密码后,**注意出现的令牌码一定要复制下来!!!** ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20200603231841.png) 到这里gitee就OK了!!! ### 3、安装picGo插件 ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20200603232311.png) ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20200603232520.png) **【注】如果没有Node.js就要先安装完Node.js,然后退掉PicGo再重新安装一次插件** ### 4、图床设置 ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20200603232944.png) 找到刚刚安装好的gitee ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20200603233018.png) ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/202006032340431.png) **友情提示** 厂库地址: ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20200604003719.png) 私人令牌:如果没有复制的话,那就重新创建一个在复制。 ### 5、使用 ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20210326114531.png) ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20210326114612.png) ## picGo配合Typora使用 ### 配置Typora Typora进入偏好设置 ![image-20210329153404402](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20210329153404.png) 点击图像,进行如下配置 ![image-20210329153640783](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20210329153640.png) ### 错误解决 配置完成后点击`验证图片上传选项` ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20210329153824.png) 发生错误,提示`Failed to fetch` ![](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20210329154135.png) **解决方案** 获取失败的原因:找不到路径。这里发现Typora的请求路径的端口是36677,而PicGo的端口是36679,所以会找不到路径。 解决:把PicGo的端口改成36677。 ![image-20210329155536887](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20210329155536.png) ![image-20210329155606051](https://gitee.com/ningboyun/PicGo_img/raw/master/images/20210329155606.png)