Add logo to repository #22019
-
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. |
Beta Was this translation helpful? Give feedback.
Replies: 21 comments 9 replies
-
I don’t blieve that is possible. |
Beta Was this translation helpful? Give feedback.
-
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 |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Is there anyway to propose a feature request to github for this? |
Beta Was this translation helpful? Give feedback.
-
Yes. GitHub Support. |
Beta Was this translation helpful? Give feedback.
-
Interestingly, this page tops the search result for This should be trivial to implement. For example, you can take a file like Hoping this will be resolved soon my Github support! |
Beta Was this translation helpful? Give feedback.
-
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! |
Beta Was this translation helpful? Give feedback.
-
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? |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Thanks, that’s helpful! |
Beta Was this translation helpful? Give feedback.
-
Hi I followed all steps and added logo to reporsitory. However still when I put my repository link on linkedin, I am getting no image. The image is reflecting though on my Settings>Options>Social preview. What to do? I am using laptop to view |
Beta Was this translation helpful? Give feedback.
-
Does it show up on twitter cards preview? Here is the test link for twitter cards preview, if it shows up here then there is no need to worry as it could be Linkedin’s caching problem, it’ll be sorted after some time when linkedin knows that your site’s logo is updated. |
Beta Was this translation helpful? Give feedback.
-
Hi, |
Beta Was this translation helpful? Give feedback.
-
For the Twitter validator I’m getting:
And Facebook is still showing my profile picture. LinkedIn post inspector https://www.linkedin.com/post-inspector/inspect is showing it correctly. EDIT: I got the Facebook preview to work via https://developers.facebook.com/tools/debug/ - “scrape again”. Even though the debug tool said it had been scraped recently already. |
Beta Was this translation helpful? Give feedback.
-
maybe try to make a new link to your repo with tinyurl. Linkedin has probably saved your old pic already |
Beta Was this translation helpful? Give feedback.
-
Actually tinyurl didn’t work fro me and the picture got back to my profile picture. If you don’t want to wait you can change the name of the repos so you don’t have to wait for linkedin to catch up |
Beta Was this translation helpful? Give feedback.
-
I found this thread, having the same/similar idea. My idea is that the repo could have a logo. if there is no place to show this logo, it could be used instead of the owner logo when referencing the repo. |
Beta Was this translation helpful? Give feedback.
-
Why Social Preview has to be rectangular? Most logos are square. |
Beta Was this translation helpful? Give feedback.
-
Adding Images or SVG's to Profiles or README's can now be done with the |
Beta Was this translation helpful? Give feedback.
-
There's a few things that GitHub could do that can improve things overall:
As one of the contributors to Schema.org, I'd be willing to help GitHub and discuss the small improvements necessary, for FREE. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
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!