-
Notifications
You must be signed in to change notification settings - Fork 129
Support custom (per repository) og:image thumbnails. #612
Comments
Great idea |
Not only this is a great idea, I don't think this is a reasonable default. |
Any update about this great feature request? |
Also wondering if there's been any development on this. I like having a profile photo of myself but it's a bit weird when I share a link to a repository and it shows a huge thumbnail of my face. |
All I could come up with, is making a gh-pages branch for my project uiwebagent |
I think this would be a great idea, and I agree, that is a bit much of a workaround @zzgab |
There really should be a place within the repo settings to assign a repo thumbnail just like you can for organization pages or profile pages. |
Any updates here? |
I guess a custom og: still isn't available. Tried creating a new website this week and put all those og: meta tags but nothing works :D Still hoping github considers this feature :) |
Seconding this, posting with a collaborator's (who made the repository) face on Twitter feels kind of rude. |
Is there any development on this? Even a simple setting to disable the use of a custom thumbnail altogether would be sufficient in the meantime. |
pls gitahubb do dis 4 us |
Great idea! |
This should be added ASAP |
Yes please. |
this would be a very nice feature. |
This feature would be great and I suspect would encourage more sharing of repos across Facebook and Twitter. |
@bvaughn So you'd be ok to set a specific repository image? Perhaps it might default to your user image as it does now if not already set. (this is a mockup, just wanted clarify; no promises) |
Hey @clarkbw! Nice to hear from you. 😄 Honestly, I would be okay with almost any way to do this. An option in the project settings area would be great. That seems the most backwards-friendly way of approaching this, and avoids bloating the repo with an unnecessary image file. 👍 |
Can I have this for Xmas? Trying to add a link to a repo to my LinkedIn profile for showcase/portfolio purposes and my face is all over it! 😅 +1 for the project scoped setting rather than a file in the repo - it's a very 'meta' thing after all |
@spcfran All in all, despite its tweaky-tricky-hacky aspect, we've got nothing but my workaround here : #612 (comment) |
@zzgab that’s a pretty clever workaround. The bad thing is that it only works for the repo owner because other people sharing the repo won’t care to jump through hoops, they’ll just share the direct link to the repo. Does anyone know if Github actually confirms when they’re working on a new feature before it’s released? |
@edgariscoding You're right. |
Can this issue be labeled |
It would be great @clarkbw, really. |
And FYI, I don't have anyone actively working on this right now. I'm hoping to convince the marketing team to pick this up with some other work they are planning for the coming year. We'll see. |
Fed up of seeing my face every time I link to a repo on Twitter; would love to see this implemented! |
come on!! Let's us configure it at least... |
I would love to see this change happen! This would be super useful for linking over social media, especially LinkedIn |
A quick and dirty solution would be great too. We really need that one. |
Pretty please! |
Just hit this myself. Went to share a repo on LinkedIn and got my profile picture. Googled how to do it and came across this. Would like to also request this feature. |
@TonyMezzolesta, @sblunt, did you 👍 on the initial post? This is the only way to make it go up in GH's todo list. |
Yup. |
Yeppers |
Microsoft owns GitHub, and they do not look at this issue.We must focus our effort on the right place to get answers from them. If someone create a topic there, let me know and I will update this link pointing to it. |
This isn’t true. I watch this entire repo and participate here. We’ve made progress on a prototype for this, it’s not my team working on it so I don’t have a good date when we might see the solution roll out. |
@clarkbw Thank you for responding to this issue thread. Please pass along a heartfelt thank you to the team currently working on adding this feature. Much appreciated. |
Need this also. Here's my... +1. |
Do it! Please |
What about baking this into the naming convention of the file, e.g. Let's take the repository we're all discussing in right now as an example:
This prevents preview images from propagating to forks, keeps the current default behavior for what forks display, and gives forks the ability to add their own preview image. |
@michaelmoussa Nice! But then the forks would contain the parent's pic file too? |
@zzgab Yes, but forks contain the parent's |
I don't think we should be forced to check in the image. Having a filename convention is good, I support it as a way to bypass the settings. |
Congrats! Thanks. Let's see!! |
Thanks for all the excellent feedback that helped make this! 💥 If you have additional features you'd like to see on top of this or in addition please try to open a new issue and link back to this. If you have feedback or find bugs you can leave comments directly in here or contact support directly via the link 👇 |
I like that we can set a custom image for a "og:image" metatag. But what about setting a custom "project image" that would be featured at the top of the repository, as the "main project photo" or "logo"...??? |
Is there a public API for this so I can reference these photos in an app that currently consumes the GitHub user repo API? |
i am also searching for an api to get the repo image |
The I sent a GitHub repo URL (which has an image set on its Settings page) from one iPhone to another via iMessage, and it didn't unfurl. I dug into it a bit, using Chrome's DevTools to view my GitHub repo as a mobile device. This let me view the source HTML, and I confirmed that the So this means that any repo links sent on mobile devices will not unfurl. It would be nice to fix this, so that GitHub links sent on mobile devices can look as nice as those posted to social media sites. I posted this as a new issue #1779. |
@N02870941 @remorses let url = repo.html_url; // <- this is the URL of your repo
axios(url).then((response => {
const html = response.data;
const $ = cheerio.load(html);
const metas = $("meta");
for (let i = 0; i < metas.length; i++) {
const meta = metas[i];
if (meta.attribs.property == "og:image") {
let value = meta.attribs.content; // <- this is the url for the og:image
}
}
})) Additionally, it would be really handy to have support for og:image in mobile. I find it pretty annoying that the og:image doesn't render properly on mobile messaging platforms such as iMessage, @isaacs any update on this? |
Hello, I added an image to one of my github repos, but its not unfurling anywhere. But when I used the templated image provided. It instantly unfurls everywhere. Is there some kind of processing delay when I upload my own image. |
Edit Please upvote this issue with a 👍rather than leave a "+1" comment. GitHub sorts issues by reactions and not by the number of comments.
Github currently sets the
twitter:image:src
andog:image
meta tags for each of my repositories to be that of my main profile picture. This seems like a reasonable default. But it would be useful if there were a way to override this setting on a per-repository basis. (Perhaps a convention that uses a specially-named file in the root of a repository? Or something in the project settings?)It's a minor issue but it would be nice when I share a link to a new version release on sites like Twitter, Reddit, etc. if the thumbnail was a project logo rather than my profile picture.
I realize that I can sometimes link to my own
gh-pages
branch and set any meta tags I want but I usually prefer the simplicity of linking directly to the GH repository landing page. Other times it's not even an option, like when linking to a wiki page with upcoming release notes (example).The text was updated successfully, but these errors were encountered: