Page preview from data-url

Hi there!

I’m working on a digital artwork build on top of Kirby and vue. The visitor can submit a page from the frontend as in this example >> Creating pages from frontend | Kirby CMS. So far, so good!

But one of the fields is actually a data-url generated from a html canvas element.

In my panel I would like this data-url to become the page-preview… Is this even possible? Via a plugin maybe?

The preview needs to be an image object. So maybe you can convert this data-url to a virtual image object in your page model.

This might give you an idea: