Home > Development Tools > git > A brief analysis of the method of creating a blog image bed in gitee

A brief analysis of the method of creating a blog image bed in gitee

PHPz
Release: 2023-03-29 11:18:01
Original
878 people have browsed it

In daily blog writing, the picture bed is essential. Gitee is a very convenient drawing tool that many people choose to use. So, how does Gitee create a blog image bed? Let’s explain it in detail below.

First of all, we need to understand some concepts and related knowledge.

1. Principle of Gitee's drawing bed

Gitee's drawing bed actually uses Gitee's warehouse for storage. In layman's terms, we upload the image to a certain warehouse of Gitee, and then quote the image link in this warehouse in our blog to achieve the effect of a picture bed.

2. How to make a Gitee picture bed

  1. Register a Gitee account

If you don’t have a Gitee account yet, you need to register first. Gitee is a domestic open source website of the same nature. It is very convenient to register. You can use Baidu on your own.

  1. Create a new warehouse

After registering a Gitee account, create a new warehouse with a customizable name, such as "PicBed" or "images".

  1. Upload pictures to the warehouse

In the warehouse, click the "Upload files" button to upload local pictures or directly link the pictures on the Internet. Copy it into the upload dialog box to upload.

  1. Get the image link address

After uploading the image, select the image just uploaded on the Gitee warehouse page, click the image name, and then click Raw. Now that you can get the link address of this picture, you can quote this link address in your blog.

  1. Quote the image link address

Put the obtained link address into the corresponding position in the blog editing box.

3. Notes

1. Image size and capacity

In order to improve the access speed of the website and prevent blog images from being stolen, it is generally recommended that you upload images at the same time. Compress images and control image size and capacity. Generally speaking, the size of the image is recommended to be within 200kb.

2. Warehouse settings

In order to ensure the security of your blog, it is recommended that you only allow yourself access permissions in the warehouse settings in Gitee.

3. Multiple image upload

You can use batch processing tools, such as Typora, etc., to upload multiple images to Gitee at one time. When saving, the link to the image will be automatically added to the editor.

4. Summary

Using Gitee to create a picture bed can not only ensure the security of blog pictures, but is also simple, convenient and easy to maintain. It is a good choice. It is recommended that everyone try to use Gitee picture bed in daily blog writing to improve the quality and efficiency of blogs.

The above is the detailed content of A brief analysis of the method of creating a blog image bed in gitee. For more information, please follow other related articles on the PHP Chinese website!

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template