Open carms-ng opened 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)