X Header and Slack Listing Images
Render an X (Twitter) profile header at 1500x500 and Slack or Discord listing images at 1600x1000 from HTML templates with Open Assets, as in No Context.
An X (Twitter) profile header is rendered at 1500x500 (3:1) in Open Assets, and Slack or Discord app listing images at 1600x1000. The No Context example ships both: a header template with a 3000x1000 retina copy and six Slack listing slides, all rendered by one command.
Sizes
| Asset | Pixels | Used by |
|---|---|---|
| X header | 1500x500 (2x: 3000x1000) | examples/no-context, x-header collection |
| Slack / Discord listing image | 1600x1000 | examples/no-context, slack collection |
Last verified: 2026-11-17.
X's help center blocked automated requests on 2026-11-17 (HTTP 403), so these are the sizes the example project uses rather than quoted platform limits. Check each platform's upload screen.
Command and config
npx open-assets render --collection x-header
npx open-assets render --collection slack{
"collections": [
{
"id": "x-header",
"label": "X Header",
"sourceSize": { "width": 1500, "height": 500 },
"templates": [{ "src": "assets/x-header/01-header.html", "name": "01-header" }],
"export": [
{ "name": "1x", "size": { "width": 1500, "height": 500 } },
{ "name": "2x", "size": { "width": 3000, "height": 1000 } }
]
},
{
"id": "slack",
"label": "Slack App Directory",
"sourceSize": { "width": 1600, "height": 1000 },
"templates": [{ "src": "assets/apps/slack/01-hero.html", "name": "01-hero" }],
"export": [{ "name": "1x", "size": { "width": 1600, "height": 1000 } }]
}
]
}Example output


Steps
- Add one collection per destination, each at its own source size.
- Keep headers sparse: X overlays your avatar near the bottom left and crops differently on phones and desktop.
- Reuse slides: the No Context Slack slides share content with its Product Hunt gallery, with layouts resized for 16:10.
- Render with
npx open-assets render --collection x-headerand--collection slack, or tag bothlaunch.
Gotchas
- Avatar overlap. Leave the lower left of an X header free of text.
- Center the message. Headers are cropped to different widths on mobile; keep text in the middle third.
- 2x output. Render a 2x copy for high density screens when the platform accepts larger uploads.
FAQ
Open Assets renders it at 1500x500, plus a 3000x1000 retina copy. Check X's upload screen for current limits.
The No Context example renders them at 1600x1000. Confirm in your Slack app's listing settings.
Add an export entry at the LinkedIn size, or a second collection if the ratio differs, since rendering crops the right or bottom edge.
Tag the collections and run npx open-assets render --tag launch. See Launch kit.
Related
New to Open Assets?
See examples from shipped apps and install it in one command on open-assets.dev.
Last updated on
Product Hunt Gallery Images
Build a Product Hunt gallery at 1270x760 with retina 2540x1520 copies from HTML templates with Open Assets, as used by the Cat IQ Test and No Context examples.
Writing Files Anywhere with outFile
Use outFile to write rendered images anywhere in your repo, such as a Next.js or Vite public folder, with placeholders, path resolution and overwrite rules.