PicGO與Typora配置圖牀使用

以往寫完博客都是一個一個圖像上傳,使用Picgo解決了以往typora寫博客時圖片地址爲本地,手機查看或者同步到網易雲筆記的時候圖片沒法顯示的問題,由此,把圖片上傳到遠程服務器存儲就能夠完美解決這個問題。html

下載typora最新版

此軟件用於撰寫markdown文檔,新版本支持圖片粘貼圖片功能vue

官網下載

下載圖牀工具picgo

所謂圖牀工具,就是自動把本地圖片轉換成連接的一款工具,網絡上有不少圖牀工具,就目前使用種類而言,PicGo 算得上一款比較優秀的圖牀工具。它是一款用 Electron-vue 開發的軟件,能夠支持微博,七牛雲,騰訊雲COS,又拍雲,GitHub,阿里雲OSS,SM.MS,imgur 等8種經常使用圖牀,功能強大,簡單易用git

github:https://github.com/Molunerfinn/PicGo/releasesgithub

github建立倉庫

(具體如何在github上建立一個倉庫已省略)windows

github配置

點擊頭像右上角的settings

點擊 Developer settings

image-20210129100110768

點擊Personal access tokens

點擊 generate tokens 選項服務器

image-20210129100243929

 

獲得一串tokens 密鑰markdown

image-20210129100415895

由此,github端配置完畢。 網絡

PicGo配置

點擊圖牀配置

image-20210129100933966

在每一個空格處寫上相應的配置。 工具

上傳區處選用 github圖牀阿里雲

image-20210129101058230

由此,PicGo的配置也完畢。

Typora配置

文件——偏好設置——圖像

image-20210129101217904

由此, typora設置完畢。

上傳圖像

格式——圖像——上傳全部本地圖像。

可能遇到的問題:

上傳成功可是不顯示圖像。

解決方法: 修改hosts文件

複製這一段代碼到C:\Windows\System32\drivers\etc下的hosts文件;

# GitHub Start 
192.30.253.112 github.com 
192.30.253.119 gist.github.com
151.101.184.133 assets-cdn.github.com
151.101.184.133 raw.githubusercontent.com
151.101.184.133 gist.githubusercontent.com
151.101.184.133 cloud.githubusercontent.com
151.101.184.133 camo.githubusercontent.com
151.101.184.133 avatars0.githubusercontent.com
151.101.184.133 avatars1.githubusercontent.com
151.101.184.133 avatars2.githubusercontent.com
151.101.184.133 avatars3.githubusercontent.com
151.101.184.133 avatars4.githubusercontent.com
151.101.184.133 avatars5.githubusercontent.com
151.101.184.133 avatars6.githubusercontent.com
151.101.184.133 avatars7.githubusercontent.com
151.101.184.133 avatars8.githubusercontent.com
相關文章
相關標籤/搜索