pictify_create_canvas_image
Generate images from FabricJS canvas JSON data with variable substitution. Render canvas designs directly without saving as templates first.
Instructions
Generate an image from FabricJS canvas JSON data with optional variable substitution. Use this when you have a FabricJS canvas design (created in the Pictify visual editor or programmatically). Templates in Pictify are built using FabricJS — this endpoint lets you render canvas JSON directly without saving it as a template first. For rendering a saved template, use pictify_render_template instead. Returns the hosted image URL (CDN-backed).
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fabricJSData | Yes | FabricJS canvas JSON object. This is the serialized canvas data from FabricJS (canvas.toJSON()). Contains objects array with shapes, text, images, and their properties. | |
| variables | No | Variables to substitute into the canvas elements that have variable bindings. | |
| variableDefinitions | No | Variable definitions describing the types and defaults for each variable. | |
| width | No | Output image width in pixels. If omitted, uses the canvas width. | |
| height | No | Output image height in pixels. If omitted, uses the canvas height. | |
| fileExtension | No | Output image format | png |