Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve og Images for members to be shared on Linkedin #44

Open
carms-ng opened this issue Sep 22, 2021 · 3 comments
Open

Improve og Images for members to be shared on Linkedin #44

carms-ng opened this issue Sep 22, 2021 · 3 comments
Assignees

Comments

@carms-ng
Copy link
Contributor

Screenshot from 2021-09-22 16-11-01

@rngadam
Copy link
Member

rngadam commented Sep 23, 2021

https://ogp.me/

@rngadam
Copy link
Member

rngadam commented Sep 23, 2021

not sure how feasible this is or when to insert it, but instead of trying to optimize the profile image, make the card an image and turn that into the og:image.

Maybe render all the cards at the build step with PhantomJS?

from html to the card:

  • create a card with a layout that has width 1200 and height 627. tag the highest card level div as id="card"
  • after page load, use https://html2canvas.hertzen.com/ on the element id card
  • append the newly created canvas to body (maybe turn canvas into img ?)

looks like this:

var node = document.getElementById('card');
html2canvas(node).then(function(canvas) {
    document.body.appendChild(canvas);
});

(in any case, being able to click and download a easy to reshare version of the card as a single image is useful)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants