Home > Development Tools > git > How to insert pictures in gitee

How to insert pictures in gitee

PHPz
Release: 2023-04-06 10:51:57
Original
1778 people have browsed it

Inserting pictures is a commonly used function when using gitee. Whether you are editing a README document or adding pictures to your blog, you need to know how to insert pictures. In this article, we will introduce how to insert pictures in gitee.

Step one: Upload images

First, we need to upload the image to be inserted into gitee. We can choose to create an images folder in the root directory of the warehouse to store pictures. Then, we can drag the image file into the folder or upload it to the directory by clicking the "Upload File" button.

Step 2: Get the image link

After uploading the image, we need to get the link to the image in the warehouse so that it can be referenced in the document. Click on the image file and copy the link address of the image in the pop-up preview window. If you insert an image into a README document, you can choose to use a relative address (./images/xxx.png) to reference the image.

Step 3: Insert pictures into the document

You can use markdown syntax to insert pictures into the document. Where we want to insert an image, we can use the following syntax:

![alt](image_url)
Copy after login

Among them, alt represents the alternative text of the image, that is, the text information displayed when the image cannot be displayed; image_url is the link address of the image, that is, we are The address obtained in the second step.

It is worth noting that when inserting a picture into the README document, the link address of the picture will change. Specifically, the link address of the picture displayed in the README document should be:

![](./images/xxx.png)
Copy after login

. Among them, ./ represents the current directory, images/ represents the directory where the picture is located, and xxx.png is the file name of the picture.

Summary

The above is how to insert pictures in gitee. By uploading images, getting image links and inserting images using markdown syntax, we can easily add images to documents. Mastering this skill will bring more fun and efficiency to our collaboration and development activities on gitee.

The above is the detailed content of How to insert pictures 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