How to generate an image using NextJS

97 Views Asked by At

I'm using the Nextjs app router for a web app I'm working on, and I want to make a button that when clicked, generates an image (based on a couple of parameters) and then downloads it to the user's computer. How do I generate an image in Nextjs? I saw something about an ImageResponse on the NextJs docs, however, there is almost no documentation on what it actually is or how to use it.

0

There are 0 best solutions below