👩‍💻 개발 도구 및 환경

[GitHub] README.md에 이미지를 추가하는 방법

Awesome Soo 2022. 10. 13. 06:04

 

repository에 관한 설명을 위해 이미지를 등록할 때가 있다.

README.md 파일에 이미지를 등록할 때마다 잘 생각 안나서 정리했다.

 


 

방법 1.

![alt text](http://url/to/img.png)

위의 내용처럼 ![alt text](  ) 를 작성후 이미지 URL을 적는다.

 

 

방법 2.

repository에 저장되어 있는 경우 이미지의 직접 연결할 수 있다.

![alt text](https://github.com/[username]/[reponame]/blob/[branch]/image.jpg?raw=true)

위의 내용처럼 username, reponame, branch, img.jpg 를 수정하여 이미지를 불러와준다.

 

 

그 외에도 여러 방법이 있는것 같다.

 

 

https://stackoverflow.com/questions/14494747/how-to-add-images-to-readme-md-on-github

 

How to add images to README.md on GitHub?

Recently I joined GitHub. I hosted some projects there. I need to include some images in my README File. I don't know how to do that. I searched about this, but all I got was some links which tell ...

stackoverflow.com

 

 

반응형