Sign In

MOSS-Image-SFT Canvas 2.0

1

MOSS-Image-SFT Canvas 2.0

TL;DR: Follow-up to the first post: MOSS-Image-SFT Canvas is at 2.0. A document now holds multiple scenes with undo/redo, grid snap and alignment guides, box hide/lock/duplication, a meta token picker — and it can generate the image in-app through a stable-diffusion.cpp server. Drawing boxes and copying the JSON works exactly as before.

If you haven't seen the app: it's a free visual bounding-box editor for MOSS-Image layout-to-image generation — you draw boxes on a canvas, describe each element, and get the exact layout JSON to paste into MOSS Image on Civitai. No coordinate math, no hand-written JSON. First article covers the basics; here's what's new.

What's new

  • Scenes. A document is now a set of scenes; each has its own canvas size, boxes, prompt fields (meta, caption, negative prompt) and background. The header picker adds, renames, duplicates and deletes scenes. Export all scenes to a single .json project file, or import a project, a scene array, or a single layout.

  • Undo/redo. Ctrl+Z / Ctrl+Shift+Z / Ctrl+Y, per scene — one step per draw/move/resize gesture and per text edit.

  • Grid snap and alignment guides. Header toggles Snap / Align): boxes snap to the grid, to other boxes' and the canvas' edges and centers, with guide lines while dragging.

  • Box management. Hide (excluded from the JSON export) and lock (click-through) per box, duplicate with Ctrl+D, drag list rows to change z-order, and optionally show each box's caption on the canvas.

  • Meta token picker. The gear button next to meta opens a picker with presets, your recent tokens and a filter — fully keyboard operable.

  • Small UI touches. Collapsible right panel, resizable boxes list, toasts for copy/paste/download.

  • In-app generation. Point the app (Settings → server URL) at a local stable-diffusion.cpp server: it sends the layout JSON as the prompt, shows intermediate preview frames on the canvas while the job runs, and collects results in a gallery — each image with its generation parameters, and the last one can be dropped under the boxes as a background to fine-tune the layout. One catch: browsers block mixed content, so generation needs a locally reachable server npm run dev locally, or serve the build from sd-server); the hosted build fully supports drawing and JSON export/import.

The workflow is unchanged

Draw the layout → copy the JSON → paste it as the prompt into MOSS Image on Civitai: SFT version, 50 steps, CFG 3 (~5 for stricter box adherence), output size matching the canvas.

App is MIT licensed.

1

Comments