Free open source GitHub image bed management tool-PicX

Original link: https://mianao.info/2023/07/07/363518

I have been managing blog pictures through GitHub, and then use CDN to accelerate. Recently, I found that a friend recommended a good tool: PicX

What is PicX?

PicX is a picture bed tool developed based on GitHub API. It provides functions such as image upload hosting, image link generation, etc. I no longer need to use git commands to upload images.

highlights

  • Use online, no downloads, no installations.
  • Simple operation, complete documentation, continuous maintenance.
  • The code is open source, the data is safe, and it is free to use.

Function

  • [x] Support dragging , copying and pasting , selecting files, etc. to select pictures
  • [x] Support image renaming , hashing (to ensure unique image name) and setting naming prefix
  • [x] Support uploading images in batches , deleting images in batches and copying image links in batches
  • [x] Support multi-level directory management of picture bed (create multi-level directory/view pictures under multi-level directory)
  • [x] Supports one-click copying of image links and free conversion of Markdown / HTML / BBCode formats
  • [x] Built-in multiple image link rules (Staticaly, jsDelivr, ChinaJsDelivr, etc.)
  • [x] Support custom configuration image link rules
  • [x] Support image compression (built-in high-efficiency compression algorithm, can be configured to automatically compress before uploading)
  • [x] Support dark night mode (auto switch/free switch)
  • [x] Support PWA
  • [x] Support to configure image watermark
  • [x] i18n (Simplified Chinese, Traditional Chinese, English)

Install docker version of PicX

The developer provides a website https://picx.xpoet.cn , which users can use directly. But since it’s already open source, why don’t we build one ourselves?
So I found an article: Free GitHub image bed PicX , the blogger not only made a docker image, but also wrote how to make the image.
I am going to install it on Qunhui, search for picx in https://registry.hub.docker.com in the registry, and find that the image provided by laosu has not been updated for a long time, so I am self-reliant, according to the latest PicX The source code was mirrored and uploaded to docker.com.
picx0.png
Search picx in the registry, select harrygg2023/picx, and select the latest version, which is currently 2.3.5.

Because my blog pictures are always on GitHub, so the images will continue to be updated and synchronized with developers as much as possible.
picx1.7kyinwyq7js.png

Download the image first, then run it, and configure the local port without any conflicts. There are no other settings. It is very simple.
picx11

The container is up and running.
picx2.6mkmynua3ws0.png

picx4.5eqnj87kotc0.png

picx3.4yokkqjryvg0.png
Enter http://Synology IP:port in the browser to see the main interface.

important! ! ! Here comes the problem, pay attention:
The PicX link must be accessed by HTTPS. If it is a regular HTTP access, other functions are normal, and the only click on复制图标链接button is invalid.
One method of external HTTPS access can use a reverse proxy, and the other method can use Cloudflared Tunnel to automatically bring HTTPS.
I failed to test the reverse proxy on Synology, probably because of the nps penetration I used. Cloudflared works very well, and can be installed either using the Synology suite or docker.

Use PicX

Before using PicX, you need to create a GitHub Token . You can choose not to expire the time limit, and you can check all the repo in the access rights.
Then use Token to complete the image bed configuration on the URL https://domain name:port where PicX docker runs.
If it is a new library, it will be automatically configured with one click, and if it is an existing library, it will be manually configured. It is very simple:
picx5.7cd1z7ur4x40.jpg

The user interface is very simple and friendly, so I won’t say much, and the user tutorial basically doesn’t need to be read:
picx6.41oempu7q3k0.jpg

picx7.3le909dmryw0.jpg

picx8.6pcodrend700.jpg

picx9.3p26wse912g0.jpg

picx10.1nqkhck5iikg.jpg

If you don’t want to trouble yourself, you can also use the website https://picx.xpoet.cn provided by the developer. According to the developer, the tokens are stored locally and will not be uploaded.

This article is transferred from: https://mianao.info/2023/07/07/363518
This site is only for collection, and the copyright belongs to the original author.