How to Upload Photos on Typora on Windows
PicGo
I’ve scoured the internet for a solution and each tutorial didn’t work for me. I had to use what I learned from all those tuts and put them all into practice. And, finally. Finally 😭.
Things you need
- Uhm. Typora
- Terminal (GitBash)
- To use GitBash you need (Git)
- Your token from https://sm.ms/home/apitoken (create account if needed)
Install picgo
npm picgo
: installs picgo
npm picgo
You can see available commands by running picgo
picgo -h
Edit config.json
- Go to
/.picgo
directory - On windows:
C:\Users\<user>\.picgo
Tip: quick shortcut, search your username on Start searchbar
3. copy and paste the code below into config.json
.
{
"picBed": {
"uploader": "smms", // Represents that the current default upload image bed is SM.MS,
"smms": {
"token": "" // Token obtained from https://sm.ms/home/apitoken
}
},
"picgoPlugins": {} // reserved for plugins
}
copy and paste your token in the “token”: “<paste token here>”
.
Check if it works
Throw an image in your current directory and run:
picgo upload mango.png
If successful, it will give you a link.
Configure Typora settings
Go to File > Preferences > Image
Under Image Upload Setting, Set
- Image Uploader: Custom
- Command:
picgo upload
Click the Test Uploader.
The most helpful tutorial I found to make this tut:
https://www.programmersought.com/article/14734786113/