Spaces:
Running
Running
Commit History
-
Invert KEEP layer preview color to match its meaning
KEEP layers now render dark (blending with the steel-panel background) with a green outline, instead of cream like CUT layers. The canvas now reads honestly: cream = will become a hole, dark = will stay as steel. Same logic in non-steel/schematic mode using a light gray fill against the gray panel. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c507c14 -
Add Gemini Flash image generation as a layer source
New /generate endpoint takes a text prompt, calls Gemini 3.1 Flash image preview (mirrors the PS Designs Studio client setup), caches the result with an image_token and a source data URL so it slots into the existing layer pipeline (mask extraction, crop, position, polarity, etc.). Plasma-friendly style toggle auto-appends a suffix to steer Gemini toward high-contrast silhouettes that subject-extract cleanly. UI: prompt box + Generate button below the upload dropzone in the Layers panel. Enter submits. Requires GEMINI_API_KEY env var or HF Space secret. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>fbcaabd -
Per-layer Keep/Cut polarity for compose
Each layer now has a polarity ("add"=keep steel or "subtract"=cut, default subtract). Layers compose in order and later layers override earlier ones on the pixels they touch, so a Keep layer can preserve steel inside a previously cut region (e.g., an eagle steel inside a moon hole), and a Cut layer can punch holes inside a previously kept region (e.g., FSF text holes inside the steel area of a wolf body). Layer-preview shows a green KEEP badge or corten CUT badge above each layer so the role is obvious at a glance. Compose re-runs when polarity changes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>c8ac6b3 -
Add cut-size readout, measure tool, and per-layer crop
- /layer/preview now returns subject_bbox in source pixels; frontend converts to inches using the layer's panel placement to show 'actual cut size' next to the placeholder rectangle. - New Measure mode (button + ruler overlay) lets you click two points on the panel and see the calculated distance in inches plus dx/dy components. - New Crop tool: drag a rectangle on the source image in a modal; the backend applies the crop before mask extraction. Reset Crop restores the original. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>30ea689 -
FSF Plasma Design Studio: layered composition, cuttability checks, FSF branding
- Multi-image layered composition (upload, segment, position, scale) - Smart subject extraction via rembg/U-2-Net - Cuttability analysis: thin-feature + floating-island detection - DXF/SVG export at panel scale - Full Send Fabrication branding Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>b16e4fc