new Post($postPath), findPostWhichMatchesUri: fn (Post $post): bool => $post->getUrl() . '.png' === $_SERVER['REQUEST_URI'], ); if ($post === null) { require __DIR__ . '/not-found.php'; exit; } header('Content-Type: image/png'); new MetaImage($post->getTitle(), 'https://mountainofcode.co.uk' . $post->getUrl(), 1200, 628) ->output();