Menu

How to Generate Editable Multi-Layer Fabric.js Templates via REST API (Prisma V1.0 Tutorial)
📰

How to Generate Editable Multi-Layer Fabric.js Templates via REST API (Prisma V1.0 Tutorial)

DEV Community: javascript·DEV KENAN·4 days ago
#OSNXnupH
#devtojavascript#devto#dev#const#prisma
Reading 0:00
15s threshold

Most image APIs give you a PNG. If your product needs designs that people keep editing, like retyping a headline, swapping a photo or translating a banner, a PNG is a dead end. This tutorial generates a complete design with Prisma V1.0 and gets it back as an editable multi-layer template you can load into Fabric.js.

What comes back:

canvas JSON in the legacy-fabric-v1 format, with live text objects, native shapes and image objects;

private raster layers (PNG) and a JPEG preview;

your own photos, placed untouched as separate image objects (up to five).

Before you start

A Prisma developer workspace you own: sign in on PicStudio's Prisma page .

An API key with generations:write , jobs:read and assets:read . It is shown once, so keep it on your server.

Prisma Credits.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.