coderbunker / coderbunker.ca

Coderbunker Canada landing page
MIT License
0 stars 3 forks source link

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

Open carms-ng opened 3 years ago

carms-ng commented 3 years ago

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

rngadam commented 3 years ago

link:

https://www.linkedin.com/post-inspector/inspect/https:%2F%2Fcoderbunker.ca%2Ffr%2Fmembers%2Fangdi_chu

for

https://coderbunker.ca/fr/members/angdi_chu

rngadam commented 3 years ago

https://ogp.me/

rngadam commented 3 years ago

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:

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)