JSON data is a set of instructions for FabricJS to create a canvas. Then the canvas can be converted to an image.
For this reason, yes, you will need to create a canvas and then create an image.
An alternative method would be to create a server running NodeJS that can run FabricJS. Ultimately, you must complete the same task - create a canvas and then generate an image. But the advantage here is that, as a server process, it will save files directly to the server, and thus this task can be automated.
But setting up a server and writing a script to complete this task may require more effort than your task requires - it depends on how often you need to do this.
This post discusses how to install NodeJS and FabricJS . This will start the server and start, but then you will also need to write a server script.
source share