Menu

Fourteen image routes, seven link preview cards, and 93 per cent of the pixels are the same picture
📰

Fourteen image routes, seven link preview cards, and 93 per cent of the pixels are the same picture

DEV Community: nextjs·Daniel Pertu·3 days ago
#31jeMrg8
#devtonextjs#devto#dev#opengraph#twitter
Long article (1477 words) — no AI summary yet.
Reading 0:00
15s threshold

PubTrivia draws its link preview cards in code rather than exporting them from a design tool: a React component rasterised by Satori through next/og , reading the same logo file and the same palette the site uses. I have written about why that is a good idea. This post is about what the 14 routes actually produce, measured by fetching every one of them and decoding the pixels.

There are 111 URLs in the sitemap and 7 distinct card images between them.

The routes

app/opengraph-image.tsx app/twitter-image.tsx app/compare/opengraph-image.tsx app/compare/twitter-image.tsx app/features/opengraph-image.tsx app/features/twitter-image.tsx app/guides/opengraph-image.tsx app/guides/twitter-image.tsx app/quiz-questions/opengraph-image.tsx app/quiz-questions/twitter-image.tsx app/solutions/opengraph-image.tsx app/solutions/twitter-image.tsx app/tools/opengraph-image.tsx app/tools/twitter-image.tsx

Enter fullscreen mode

Exit fullscreen mode

Seven pairs.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.