Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Ground Controller Lvl 1
Message 1 of 11

Add logo to repository

Solved! Go to Solution.

Hello,

anyone knows if there is a way to add a logo to a repository?

 

I'm experiencing a strange "social" sharing: someone on LinkedIn shares one of my repos, and the sharing message linking the repo shows my github profile picture... sounds strange, it would be better to have there a logo related to the project.

 

Thanks! F.

 

10 Replies
Commander Lvl 3
Message 2 of 11

Re: Add logo to repository

I don’t blieve that is possible.


- Mark
Ground Controller Lvl 1
Message 3 of 11

Re: Add logo to repository

Is there anyway to propose a feature request to github for this?

Commander Lvl 3
Message 4 of 11

Re: Add logo to repository

Yes. GitHub Support.

- Mark
Copilot Lvl 3
Message 5 of 11

Re: Add logo to repository

Hi,

I have sett some free guide on the internet, where show you how you can fix your own logo. Then you can use that

logo as your Github profile picture. Do a google search.

 

/Fatemeh

Copilot Lvl 2
Message 6 of 11

Re: Add logo to repository

While it is possible to add a logo to a GitHub profile, as far as I know one cannot add a logo to a repository - except by adding an image to the README file. The question was about repositories.

Copilot Lvl 3
Message 7 of 11

Re: Add logo to repository

Interestingly, this page tops the search result for `github repo logo` which explains the intensity of this problem! I'm also facing the same issue as you, if I post a link to my github repo, my profilie picture appears as the featured image which is irrelevant and pointless.

 

This should be trivial to implement. For example, you can take a file like `logo.png` or `favicon.png` from the repo's root directory and make it as the featured image, isn't it? Gitlab does the same to the best of my knowledge.

 

Hoping this will be resolved soon my Github support!

Solution
Commander Lvl 3
Message 8 of 11

Re: Add logo to repository

Hi @prahladyeri ,

 

This issue already has been resolved! See the solution below. This is also interesting for the other contributors to this conversation: @fabiobeoni , @DimitriPapadopoulos , @Fatemehshirazi .

 

You can navigate to your repo > Settings Options > and add an image under Social media preview. Good luck!


- Mark
Copilot Lvl 2
Message 9 of 11

Re: Add logo to repository

Ah indeed, this is documented in Customizing your repository's social media preview.

 

I have added a logo to one of my repositories. I'm not much in social networks. When I send an SMS with a link to the repository, no preview of any kind appears on Android. Is this very specific to some social networks? Where can I find documentation on the social media preview specification, if there is one?

Commander Lvl 3
Message 10 of 11

Re: Add logo to repository

Great that you posted a link to the help article! I don't believe there is more specific information availible. I thinks GitHub makes use of http://ogp.me/ , which transfers this kind of info trough HTML meta tags.

 

It is an open protocol and as far as I know it's supported on most social media and messaging services.

 

As in your case, I just think your Android SMS application doesn't allow for previews at all. If it were to allow any preview at all, it would show your profile picture as an image until you uploaded a custom image. So if you aren't seeing any image, I don't think your client supports it.


- Mark