Reputation: 1115
The title says it all. I took a look into GitLab docs but couldn't find clear-cut solution to this.
How do I add image to readme on GitLab ? Image that's within the repo.
Upvotes: 36
Views: 51999
Reputation: 31
images/
)![Alt text for the image](relative/path/to/image.png)
![Demo Image](images/demo.png)
Upvotes: 1
Reputation: 787
You can use ![image info](images/image.png)
where images could be a directory in your project structure.
Upvotes: 25
Reputation: 175
BEST AND EASIEST WAY:
USE HTML ELEMENT: like this
<img src="https://github.com/user/repo/blob/main/output.jpg" align="center" height="350" width="600"/>
This will allow to control Height/Width/Allignment too.
Upvotes: 0
Reputation: 149
for more info. create issue and upload image /copy url of image to IMAGE_DESCRIPTION
Upvotes: 0
Reputation: 134
From the docs
Inline-style (hover to see title text):
![alt text](img/markdown_logo.png "Title Text")
Reference-style (hover to see title text):
![alt text1][logo]
[logo]: img/markdown_logo.png "Title Text"
Upvotes: 8