DEV Community

qinyihao
qinyihao

Posted on

Upload pictures quickly using PicGo

Hello dev.to! This is my first post on dev.to.
Today, I am going to talk about uploading pictures quickly.

Preparation

You need to prepare:

  1. the installed PicGo app which can be downloaded here. Make sure to download the application for your OS.
  2. a GitHub account
  3. a GitHub token that I will introduce later.

Operation

Open the app

OK, assume you are fully prepared, and now you can open the PicGo app.
And it looks like this (sorry for Chinese):
image

Config

Choose "Github" from sidebar

It's here:image
Click it.

Config the repo, token and branch

The interface looks like this:image
Note that your interface should be blank.

GitHub token

You can generate a token here. You will have to enter your GitHub password.
So you can see this:image
Input PicGo in the Note part.
And, your scope should contain repo. image
Also, you can choose other scopes as more as you like. Then, click the Generate Token button at the bottom. It's a green one, like this: image
After that, you can see a freshly-generated token.
image
Make sure to copy that and save that to a safe place. You won’t be able to see it again!

GitHub repo config

Now, you can create a repo on GitHub here. Make sure to choose the Add a README file in the Initialize this repository with: part.
image
Then, click Create repository down below.

Final part

Enter your repo detail and token in the PicGo interface.
The repo name should be entered as username/repo name.
For example, if your username is user and your repo name is pic, you should enter user/pic.
Then, enter main as the branch.
After that, enter the token that was generated beforehand.
Finally, click Submit.
Then it's over!

Using PicGo

Return to the Upload Part, and click onto the part that says "Click here to upload", and choose a picture. If your upload is successful, you can find that there's a Markdown code in your clipboard.

Happy Reading! Remember the ❤.

Top comments (0)