tinyimg - v1.1.1
    Preparing search index...

    Function og

    • 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.

      const card = await og(tinyimg, {
      title: 'How a planner made the decode cheap',
      subtitle: 'Deciding what to decode before decoding it',
      footer: 'tinyimg.gmitch215.dev',
      background: '#0b1020'
      });

      return card.response({ 'cache-control': 'public, max-age=86400' });

      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.

      Parameters

      Returns Promise<OgResult>