[![](https://raw.githubusercontent.com/Molunerfinn/test/master/picgo/New%20LOGO-150.png)](https://raw.githubusercontent.com/Molunerfinn/test/master/picgo/New%20LOGO-150.png)
PicGo
=====
[](#picgo)
> 图片上传+管理新体验
[![](https://camo.githubusercontent.com/be5b29c0d9d30f24be8e6efbaea259d7557227fac7b6bc19d7f7f54c71ea347d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532307374796c652d7374616e646172642d677265656e2e7376673f7374796c653d666c61742d737175617265)](https://github.com/Molunerfinn/PicGo/actions)[![](https://github.com/Molunerfinn/PicGo/actions/workflows/main.yml/badge.svg) ](https://github.com/Molunerfinn/PicGo/actions)[![](https://camo.githubusercontent.com/d1a15737e306df94728529b758a6caf3271da5b5c0f513185ee3c4a9d920c7a1/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f646f776e6c6f6164732f4d6f6c756e657266696e6e2f506963476f2f746f74616c2e7376673f7374796c653d666c61742d737175617265) ](https://github.com/Molunerfinn/PicGo/releases)[![](https://camo.githubusercontent.com/33622ce317cbecad4ec2906ca149d81cf89295c8ac5824b63119af0067735c1a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4d6f6c756e657266696e6e2f506963476f2e7376673f7374796c653d666c61742d737175617265) ](https://github.com/Molunerfinn/PicGo/releases/latest)[![](https://camo.githubusercontent.com/a8e0e7eeea36b1c06f29e40dc91bccc8a287173c58fe1b87cab6f1e87268339d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f706963676f2d636f6e76656e74696f6e2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://github.com/PicGo/bump-version)
应用概述
----
[](#%E5%BA%94%E7%94%A8%E6%A6%82%E8%BF%B0)
**PicGo: 一个用于快速上传图片并获取图片 URL 链接的工具**
PicGo 本体支持如下图床:
* `七牛图床` v1.0
* `腾讯云 COS v4\v5 版本` v1.1 & v1.5.0
* `又拍云` v1.2.0
* `GitHub` v1.5.0
* `SM.MS V2` v2.3.0-beta.0
* `阿里云 OSS` v1.6.0
* `Imgur` v1.6.0
**本体不再增加默认的图床支持。你可以自行开发第三方图床插件。详见 [PicGo-Core](https://picgo.github.io/PicGo-Core-Doc/)**。
特色功能
----
[](#%E7%89%B9%E8%89%B2%E5%8A%9F%E8%83%BD)
* 支持拖拽图片上传
* 支持快捷键上传剪贴板里第一张图片
* Windows 和 macOS 支持右键图片文件通过菜单上传 (v2.1.0+)
* 上传图片后自动复制链接到剪贴板
* 支持自定义复制到剪贴板的链接格式
* 支持修改快捷键,默认快速上传快捷键:`command+shift+p`(macOS)| `control+shift+p`(Windows\\Linux)
* 支持插件系统,已有插件支持 Gitee、青云等第三方图床
* 更多第三方插件以及使用了 PicGo 底层的应用可以在 [Awesome-PicGo](https://github.com/PicGo/Awesome-PicGo) 找到。欢迎贡献!
* 支持通过发送 HTTP 请求调用 PicGo 上传(v2.2.0+)
* 更多功能等你自己去发现,同时也会不断开发新功能
* 开发进度可以查看 [Projects](https://github.com/Molunerfinn/PicGo/projects),会同步更新开发进度
**如果第一次使用,请参考应用 [使用文档](https://picgo.github.io/PicGo-Doc/zh/guide/getting-started.html)。遇到问题了还可以看看 [FAQ](https://github.com/Molunerfinn/PicGo/blob/dev/FAQ.md) 以及被关闭的 [issues](https://github.com/Molunerfinn/PicGo/issues?q=is%3Aissue+is%3Aclosed)。**
下载安装
----
[](#%E4%B8%8B%E8%BD%BD%E5%AE%89%E8%A3%85)
| 下载源 | 地址/安装方式 | 平台 | 备注 |
| --- | --- | --- | --- |
| GitHub Release | [https://github.com/Molunerfinn/PicGo/releases](https://github.com/Molunerfinn/PicGo/releases) | All | 国内下载速度可能会慢 |
| [腾讯云COS](https://cloud.tencent.com/product/cos) | [https://github.com/Molunerfinn/PicGo/releases](https://github.com/Molunerfinn/PicGo/releases) 附在更新日志结尾 | All | 感谢 [腾讯云COS](https://cloud.tencent.com/product/cos) 提供的赞助支持 |
| [山东大学镜像站](https://mirrors.sdu.edu.cn/) | [https://mirrors.sdu.edu.cn/github-release/Molunerfinn\_PicGo](https://mirrors.sdu.edu.cn/github-release/Molunerfinn_PicGo) | All | 感谢 [山东大学镜像站](https://mirrors.sdu.edu.cn/) 提供的镜像支持 |
| [Scoop](https://scoop.sh/) | `scoop bucket add extras` & `scoop install picgo` | Windows | 感谢 @huangnauh 和 @Gladtbam 的贡献 |
| [Chocolatey](https://chocolatey.org/) | `choco install picgo` | Windows | 感谢 @iYato 的贡献 |
| [Homebrew](https://brew.sh/) | `brew install picgo --cask` | macOS | 感谢 @womeimingzi11 的贡献 |
| [AUR](https://aur.archlinux.org/packages/yay) | `yay -S picgo-appimage` | Arch-Linux | 感谢 @houbaron 的贡献 |
应用截图
----
[](#%E5%BA%94%E7%94%A8%E6%88%AA%E5%9B%BE)
[![](https://raw.githubusercontent.com/Molunerfinn/test/master/picgo/picgo-2.0.gif)](https://raw.githubusercontent.com/Molunerfinn/test/master/picgo/picgo-2.0.gif)
[![picgo-menubar](https://user-images.githubusercontent.com/12621342/34242310-b5056510-e655-11e7-8568-60ffd4f71910.gif)](https://user-images.githubusercontent.com/12621342/34242310-b5056510-e655-11e7-8568-60ffd4f71910.gif)
开发说明
----
[](#%E5%BC%80%E5%8F%91%E8%AF%B4%E6%98%8E)
> 目前仅针对 Mac、Windows。Linux 平台并未测试。
如果你想要学习、开发、修改或自行构建 PicGo,可以依照下面的指示:
> 如果想学习 Electron-vue 的开发,可以查看我写的系列教程——[Electron-vue 开发实战](https://molunerfinn.com/tags/Electron-vue/)
1. 你需要有 Node、Git 环境,了解 npm 的相关知识。
2. `git clone https://github.com/Molunerfinn/PicGo.git` 并进入项目。
3. `yarn` 下载依赖。注意如果你没有 `yarn`,请去 [官网](https://classic.yarnpkg.com/en/docs/install) 下载安装后再使用。 **用 `npm install` 将导致未知错误!**
4. Mac 需要有 Xcode 环境,Windows 需要有 VS 环境。
5. 如果需要贡献代码,可以参考[贡献指南](/Molunerfinn/PicGo/blob/dev/CONTRIBUTING.md)。
### 开发模式
[](#%E5%BC%80%E5%8F%91%E6%A8%A1%E5%BC%8F)
输入 `npm run electron:serve` 进入开发模式,开发模式具有热重载特性。不过需要注意的是,开发模式不稳定,会有进程崩溃的情况。此时需要:
```shell
ctrl+c # 退出开发模式
npm run electron:serve # 重新进入开发模式
```
**注:Windows 开发模式运行之后会在底部任务栏的右下角应用区出现 PicGo 的应用图标。**
### 生产模式
[](#%E7%94%9F%E4%BA%A7%E6%A8%A1%E5%BC%8F)
如果你需要自行构建,可以 `npm run electron:build` 开始进行构建。构建成功后,会在 `dist_electron` 目录里出现构建成功的相应安装文件。
**注意**:如果你的网络环境不太好,可能会出现 `electron-builder` 下载 `electron` 二进制文件失败的情况。这个时候需要在 `npm run electron:build` 之前指定一下 `electron` 的源为国内源:
```shell
export ELECTRON_MIRROR="https://npmmirror.com/mirrors/electron/"
# 在 Windows 上,则可以使用 set ELECTRON_MIRROR=https://npmmirror.com/mirrors/electron/ (无需引号)
npm run electron:build
```
只需第一次构建的时候指定一下国内源即可。后续构建不需要特地指定。二进制文件下载在 `~/.electron/` 目录下。如果想要更新 `electron` 构建版本,可以删除 `~/.electron/` 目录,然后重新运行上一步,让 `electron-builder` 去下载最新的 `electron` 二进制文件。
其他相关
----
[](#%E5%85%B6%E4%BB%96%E7%9B%B8%E5%85%B3)
* [vs-picgo](https://github.com/PicGo/vs-picgo):PicGo 的 VS Code 版。
* [flutter-picgo](https://github.com/PicGo/flutter-picgo):PicGo 的手机版 App(支持 Android 和 iOS )。
* [PicHoro](https://github.com/Kuingsmile/PicHoro):另一款支持 PicGo 配置的手机版 App(暂时只支持 Android)。
赞助
--
[](#%E8%B5%9E%E5%8A%A9)
如果你喜欢 PicGo 并且它对你确实有帮助,欢迎给我打赏一杯咖啡哈~
支付宝:
[![](https://user-images.githubusercontent.com/12621342/34188165-e7cdf372-e56f-11e7-8732-1338c88b9bb7.jpg)](https://user-images.githubusercontent.com/12621342/34188165-e7cdf372-e56f-11e7-8732-1338c88b9bb7.jpg)
微信:
[![](https://user-images.githubusercontent.com/12621342/34188201-212cda84-e570-11e7-9b7a-abb298699d85.jpg)](https://user-images.githubusercontent.com/12621342/34188201-212cda84-e570-11e7-9b7a-abb298699d85.jpg)
License
-------
[](#license)
[MIT](http://opensource.org/licenses/MIT)
Copyright (c) 2017 - Now Molunerfinn