preface
Recently I wrote a blog with my own blog system Fame. I used Github to make a graphic bed for the pictures in my blog, and I cooperated with RawGit to get the links in the pictures. However, it was very troublesome every time, so I wrote a small tool for uploading pictures and getting links.
Environmental requirements
- Java8 + (also available with JRE if the Java environment is not available, just emmmm…….)
- git
Quick to use
-
Start with a Github account and create a Respository.
-
Give this respository a name, which we’ll call git_resource. You can then fill in some description on Desciption. Next check Initialize this Repository with a README. Finally, click Create Repository.
-
Clone project to local. Select HTTPS or SSH. If SSH has been configured, you are advised to select HTTPS because you need to enter the account password.
-
Jar package directory: java-jar gitpic-java. jar. If there is no Java environment, unzip gitpic-exe. rar and click exe.
-
In gitPic, select the Git project you want to use as your map bed, which in this case is the git_resource you just created (this will read the Git information under that project, which will take a while), and then select the folder where you want to save your images. For example, your Java series images can be placed in the Java folder under the git_resource project.
-
Drag an image or click Select image to select an image to upload and gitPic will automatically copy the image to the git_resource/ Java folder and generate a link to the image that has been copied to your clipboard and is ready to paste directly into your blog posts.
-
However, this link has not been uploaded to Github at this time, so it is not accessible in the browser. At this time, just click Submit and upload and wait until the upload is successful (if the link is clone in HTTPS mode, you need to enter the Github account password), then you can access it in the browser!
Download link
Download link (JAR version and EXE version)
Afterword.
The tool is based on JavafX and relies heavily on jGit and JFoenix. If there is anything that needs to be improved, please leave a message or put forward in the issue, thank you very much!
Making address: gitPic
Original address :gitPic, using Github to do map bed small tools