PicGo+GitHub+Typora for Blog_picgo+github+typora load is failsed-程序员宅基地

技术标签: github  Typora  Image Host  PicGo  

See this from my Blog https://dyingdown.github.io/2021/08/31/PicGo-GitHub-Typora/

Recently, while trying to accelerate my blog load speed, I also want to get all my pictures a cdn. Also I’m tired of uploading the picture every time I want to quote a picture in my post, So I found a softeware PicGo.

Preparations

I’m using Typora to edit markdown files.

And downloading PicGo is also needed. click here to download V2.2.2

Then you need to have a GitHub Repository to store your images.

Setups

First, find GitHub 图床 in PicGo.

image-20210831212725254

  1. “设定仓库名”(set repository name)

    the format is GitHub_Username/repo_name. Be sure to write username because I forgot to write it and I can’t upload the picture which confused me a long time.

  2. “设定分支名”(set branch name)

    usually is main or master

  3. “设定Token”(set token)

    First you need to generate a token for PicGo.

    Setting -> Developer settings -> Personal access tokens -> generate a new token

    image-20210831213039197 image-20210831213129878 image-20210831213256531

    Fill Note and select Expiration.

    Then select scopes, according to the docs of PicGo, it only need to select repo

    image-20210831213611449

    Then go to the bottom Generate Token.

    The token will be shown like this.

    image-20210831213816079

    copy the token to PicGo.

    Note that you can save the token to a file because once you refresh the page, you can not see the content of token again.

  4. “指定存储路径”(set storage path)

    Set the folder in your repo.

  5. “设定自定义域名”(set custom domain)

    In this situation, since I want to use jsDelivr to make my image faster and I don’t want to type https://cdn.jsdelivr.net/gh/github_Username/repo_Name every time, I can fill this to the blank.

Then, you need to set for typora.

image-20210831214853064

The configuration is this.

After all the settings, press the button 验证图片上传选项to test whether all the functions can work.

At last, next time you copy a image into typora, it will automatically upload your picture to your “image hosing service” and returns an url that with the jsDelivr prefix.

Some errors

First one is that there is a file with the same name already exists in the repo. In this case, you can select image-20210831214316812 this to rename your file using timestamp.

Other errors may be that you wrote your username or repo name wrong.

For more errors, you can check image-20210831214514413this to see the log file.

For blog

In order to be easy, I did not create a new repository for images, I just want it to store in the Blog repo. So when I preview my posts in localhost, it works fine and the pictures all can be shown.

But a day later,when I tried to open my blog, I found that the pictures can’t load. I check the link and the picture can’t be opened. Then I went to see the repo and the pictures are just gone!!!

That’s because when I deploy my blog, I push all the things to the repo to cover the repo, because I didn’t have the pictures in my local files, the files covers the old repo, then the images are disappeared. And even the commits of PicGo disappeared.

At last, I still have to create a new repo for images.

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/yaoo_o/article/details/120039895

智能推荐

fluent里常见基础问题(转)_fluent不同算法对结果影响-程序员宅基地

文章浏览阅读8.4k次,点赞9次,收藏104次。1 什么叫松弛因子?松弛因子对计算结果有什么样的影响?它对计算的收敛情况又有什么样的影响?  1、亚松驰(Under Relaxation):所谓亚松驰就是将本层次计算结果与上一层次结果的差值作适当缩减,以避免由于差值过大而引起非线性迭代过程的发散。用通用变量来写出时,为松驰因子(Relaxation Factors)。《数值传热学-214》  2、FLUENT中的亚松驰:由于FLUENT所解..._fluent不同算法对结果影响

Application Loader上传中断,提示Cannot proceed with delivery: an existing transporter instance is currently_error: cannot proceed with delivery: an existing t-程序员宅基地

文章浏览阅读1k次。把Application Loader(XCode->Organizer->Archived Applications->Submit)中正在上传的文件中断或者删除,再次Submit提示:Cannot proceed with delivery: an existing transporter instance is currently uploading this package。无论如_error: cannot proceed with delivery: an existing transporter instance is cur

typescript的基本结构_Vue3.0 前的 TypeScript 最佳入门实践-程序员宅基地

文章浏览阅读111次。Vue3.0 前的 TypeScript 最佳入门实践前言其实Vue官方从2.6.X版本开始就部分使用Ts重写了。我个人对更严格类型限制没有积极的看法,毕竟各类转类型的骚写法写习惯了。然鹅最近的一个项目中,是TypeScript+ Vue,毛计喇,学之...…真香!注意此篇标题的“前”,本文旨在讲Ts混入框架的使用,不讲Class API1. 使用官方脚手架构建npm install -g @vu..._vue3.0 typescript目录结构

Science Advances: 中科院微生物所叶健团队揭示双生病毒调控植物免疫平衡制约机制...-程序员宅基地

文章浏览阅读601次。病毒,作为非细胞的生物形式,只能在活细胞内增殖,专性活细胞内寄生。我们居住的星球病毒数量惊人,大约有1031个,其基因头尾相连可长达2.5亿光年。现代微生物学的奠基人路易斯巴斯德用病毒(..._editor daniel j kliebenstein

Java导出Word文档(可设置字体)_java list数据生成word自定义字体大小和字体颜色-程序员宅基地

文章浏览阅读7.5k次。原作者:兰博基尼http://hujinfan.iteye.com/blog/847029导出内容导Word文档中,可设置字体,亲测可用。importjava.io.FileOutputStream;import java.io.IOException;import java.util.List;importcom.lowagie.text.Document;impo_java list数据生成word自定义字体大小和字体颜色

X1 grok-1 开源大语言模型下载_grok-1下载-程序员宅基地

文章浏览阅读795次,点赞11次,收藏4次。我们正在发布我们的大型语言模型 Grok-1 的基本模型权重和网络架构。Grok-1 是一个 3140 亿参数的专家混合模型,由 xAI 从头开始训练。_grok-1下载

随便推点

Notepad++配置C语言编译环境-程序员宅基地

文章浏览阅读4k次,点赞5次,收藏12次。今天和大家分享一个使用Notepad++配置C语言编译环境的方法,因为本人是一个C语言新手,一般写个小程序用文本编辑器就够用。前提: 下载mingw 或者 Cygwin 或 tdm-gcc 里面有C语言编译器,然后配置环境变量。 https://sourceforge.net/projects/mingw-w64/files/?source=navbar首先: ...

excel文件可以直接转换成图片格式吗?excel文件怎样才能快速转换成图片?excel文件快速转换成图片的方法_excel图片地址转图片-程序员宅基地

文章浏览阅读836次,点赞24次,收藏17次。本文介绍了将Excel文件转换成图片格式的五种方法,包括使用汇帮PDF转换器、Excel内置功能、屏幕截图工具、复制粘贴和另存为图片。转换前需备份文件,选择合适的图片格式和分辨率,注意第三方软件的安全性。转换后便于在不同设备和平台上查看和分享Excel数据_excel图片地址转图片

Linux使用cups进行打印_cups/cups.h-程序员宅基地

文章浏览阅读2.2k次。复制的代码,还没有试过。#include <cups/cups.h>//...int print_label( const char *text, const char *printer_name, const char *job_name ){ int jobId = 0;jobId = cupsCreateJob( CUPS_HTTP_DEFAULT,..._cups/cups.h

在腾讯云上创建您的SQL Cluster(1)_腾讯云 搭建sql集群-程序员宅基地

文章浏览阅读431次。在国内公有云厂商上搭建一套SQL Cluster的难度相信做Windows的童鞋都会很清楚,并非它的搭建有多少难度,只是很多细节需要注意。腾讯云,QCloud,为什么选择QCloud来做这个实验,除了QCloud是我的东家(这里我没收任何广告费啊),其实QCloud对Windows原生态保留得最好,所以很多种Windows实验(解决方案)在QCloud都是支持的。所以,今天我就来讲_腾讯云 搭建sql集群

[论文]CVPR2019论文GIoU解读_giou论文-程序员宅基地

文章浏览阅读3.6k次,点赞2次,收藏15次。本文是对 CVPR2019 论文《Generalized Intersection over Union: A Metric and A Loss for Bounding Box Regression》的解读: 论文地址:https://arxiv.org/abs/1902.096301.Motivation 包围框回归是2D/3D 视觉任务中一个最基础的模块,不管..._giou论文

相对熵/KL散度(Kullback–Leibler divergence,KLD)-程序员宅基地

文章浏览阅读819次。相对熵(relative entropy)又称为KL散度(Kullback–Leibler divergence,简称KLD),信息散度(information divergence),信息增益(information gain)。 KL散度是两个概率分布P和Q差别的非对称性的度量。 KL散度是用来度量使用基于Q的编码来编码来自P的样本平均所需的额外的比特个数。 典型情况..._kull-back entropy

推荐文章

热门文章

相关标签