The whole of what a social preview needs in one call: a background, a headline that wraps and
truncates instead of running off the card, a subtitle, a footer, and a shadow so the text stays
readable over a photograph. Nothing has to be loaded first, because the face is compiled in.
constcard = awaitog(tinyimg, { title:'How a planner made the decode cheap', subtitle:'Deciding what to decode before decoding it', footer:'tinyimg.gmitch215.dev', background:'#0b1020' });
The report is the part worth reading before serving it: titleTruncated says the headline was
cut, and missingGlyphs says the face had nothing for some of the characters, which is what a
card with empty boxes in the headline looks like from the inside.
Renders an Open Graph card.
The whole of what a social preview needs in one call: a background, a headline that wraps and truncates instead of running off the card, a subtitle, a footer, and a shadow so the text stays readable over a photograph. Nothing has to be loaded first, because the face is compiled in.
The report is the part worth reading before serving it:
titleTruncatedsays the headline was cut, andmissingGlyphssays the face had nothing for some of the characters, which is what a card with empty boxes in the headline looks like from the inside.