mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-12-06 05:53:08 -05:00
Object > Concept to Vector... (also Window, the context menu, the Contextual Task Bar, Properties and the Control bar) opens a panel for one selected image or unexpanded Image Trace object. It makes 1 to 8 styles of the image side by side and Insert Selected puts the ticked ones to the right of the image as one undo step, leaving the image as it is. - Providers register by id in the engine (crates/engine/src/concept_vector.rs). The host checks every result (counts, anchors, coordinates, paints) before it is previewed or inserted, and never uses another provider in place of the one named. The only provider is built in, offline.traceStyles: five styles made with Image Trace (Outline, Ink Lines, Flat Color, Detailed Color, Gray Tones), with Detail 0 to 100. It takes no prompt and makes vector art only. The registry reads a provider's id, name and capabilities once, when it is registered, and refuses a provider that panics then. - Commands: conceptVector.providers, generate, results, cancel and insert. Generate keeps a session job and changes nothing in the document; insert refuses a job whose image, pixels or placement changed. - Results go above a clip group or opacity-masked group around the image; an image on a layer with a clipping mask or an opacity mask is refused. Variations wider than the image keep 24 pt between them. - Previews keep the image's proportions and paint the paths in their order, each path's fill and then its stroke at its width, up to 40,000 points. - On the web build the run is made a part at a time across frames (the image decoded, a style's color layers found, one layer traced), so Cancel takes effect inside a style. vectorcraft_trace::TraceSteps traces one layer a step. The help page: https://helpx.adobe.com/illustrator/desktop/use-generative-ai/generate-vector-artwork-from-images.html