nutrition-facts

Nutrition facts OG image template

A food label on a gingham tablecloth: the dish photo, the calories in big type and the macros as a stacked bar and ruled rows.

Nutrition facts Open Graph image template rendered by Shareglint
Nutrition facts template at square size (1080×1080)
Nutrition facts template at portrait size (1080×1350)
Nutrition facts template at story size (1080×1920)
Nutrition facts template at pinterest size (1000×1500)
Nutrition facts template at youtube size (1280×720)

These are real renders from the API with the example values in the table below. Switch the size above: the same template lays itself out for all 6 sizes — send size or sizes with the request.

For recipe sites, meal-kit and diet apps, and menus: a companion to recipe. Amounts are printed as written; their numbers size the stacked bar and the shares. Wide frames show the photo beside the label and up to four macros in two columns; square and vertical frames put the photo on top with the label overlapping it, and without a photo the label stands alone in the middle.

Fields

Every field is optional. Long text shrinks to fit instead of overflowing; an image field takes a public URL that we fetch on our side.

Field Type Description Example
title text Name of the dish or product. default: Recipe name Green goddess salad bowl
calories text Energy as written, e.g. 540 kcal. 540 kcal
serving text Serving size, e.g. Per bowl · 420 g. Per bowl · 420 g
macros text Up to six rows as name|amount separated by semicolons, e.g. Protein|32 g; Carbs|48 g; Fat|18 g. Protein|32 g; Carbs|48 g; Fat|18 g; Fibre|9 g
eyebrow text Small heading at the top of the label, e.g. Nutrition facts. Nutrition facts
image image URL Photo of the dish. https://example.com/images/salad.jpg
site text Site at the bottom of the label. northwind.kitchen
accent colour Brand colour as hex, e.g. #6366f1. Drives buttons, highlights and the background glow. default: #16a34a #16a34a
theme dark | light Colour scheme: dark or light. default: light —

Render it with one request

Use the slug as template. The response holds the URL of the finished PNG; ?wait=true keeps the connection open until it is ready.

curl -X POST "https://shareglint.com/v1/images?wait=true" \
  -H "Authorization: Bearer sk_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "template": "nutrition-facts",
    "modifications": {
        "title": "Green goddess salad bowl",
        "calories": "540 kcal",
        "serving": "Per bowl · 420 g",
        "macros": "Protein|32 g; Carbs|48 g; Fat|18 g; Fibre|9 g",
        "eyebrow": "Nutrition facts",
        "site": "northwind.kitchen",
        "image": "https://example.com/images/salad.jpg"
    }
}'

Or paste a signed URL into og:image

For static sites, Webflow, Shopify and no-code tools: put the fields in the query string and sign it with your signing secret. The first request renders the image, every later one is a redirect to the cached file. How to compute the signature.

<meta property="og:image" content="https://shareglint.com/i/acc_YOUR_ACCOUNT_ID/nutrition-facts.png?calories=540%20kcal&eyebrow=Nutrition%20facts&macros=Protein%7C32%20g%3B%20Carbs%7C48%20g%3B%20Fat%7C18%20g%3B%20Fibre%7C9%20g&serving=Per%20bowl%20%C2%B7%20420%20g&site=northwind.kitchen&title=Green%20goddess%20salad%20bowl&s=YOUR_SIGNATURE">

Make it yours

accent and theme change per request. For anything more, copy the template into your account: you get an ordinary HTML template with the same fields that you can edit in the dashboard or through the API. If the slug is free on your account, the copy takes it — your integrations switch to your version without changing a line.

curl -X POST "https://shareglint.com/v1/templates/library/nutrition-facts/copy" \
  -H "Authorization: Bearer sk_live_YOUR_KEY"

More Local business, real estate & travel templates

All 14 Local business, real estate & travel templates →  ·  All templates →