Using default.png.php to dynamically generate image for all pages (aka one template to rule them all)

Right, so I am tackling SEO optimization now, including the tobimori/kirby-seo: :mag_right: SEO for Kirby CMS – done right. (github.com) plugin. Now, this great plugin does not solve one problem yet: dynamic generation of open graph images. So I took to the cookbook recipe from Manuel and adopted it to my liking which works great. My plan is to use one template to rule them all except where I need it to be different. So I was counting on using a default.png.php template.

Now I do not really use the default.php template and mine is empty, so I thought I could simply create a default.png.php template with my image creation code in it - and call on any page in the way of mysite.com/pagename.png to create this default image. But no, I get a 404 instead. Which confuses me, because when studying the content representation documentation, it even gives the exact example in the blue box.

Is my understanding wrong or do I have an error in my setup?

Thanks
Andreas

I think that is a misunderstanding. The default template only serves as a fallback for pages where a templates doesn’t exist, but that is not true for pages that do have a standard template.

For a one-fits-all solution, a route would be the better option than content representations.