Commit Graph
4 Commits
Author SHA1 Message Date
dotCooCoo 1886147caf Concept to Vector: state that each style is made on its own
A caller with no thread to wait on, such as the web build, asks a
provider without parts for one style at a time. Provider::generate now
states that a style's variation depends only on the image, the prompt,
the detail and that style, so that both callers get the same artwork.
2026-11-20 17:36:48 -08:00
dotCooCoo 401e116769 Concept to Vector: keep jobs with scripts, results out of generated groups
- Insert puts the results beside an Objects on Path, graph, Shaper,
  dimension, flare or Live Paint group or a compound shape around the
  image, so the group does not place, replace or merge them.
- Insert refuses an image on a layer with fills or strokes of its own,
  which would paint over the results.
- A script that ends with an error leaves the jobs as they were: the
  jobs it made are dropped, and a job it canceled, or whose document it
  closed, is kept. Jobs the app makes or cancels while a script runs are
  kept when the script ends.
- conceptVector.cancel played from recorded steps (an action, a replayed
  journal or a step of a replayed batch) is an error, as insert already
  is, since a job number from another session may name other results.
- The style and variation lists are checked for length before their ids
  are copied.
- Provider results are refused when a subpath has no anchor point, and
  each subpath of a compound path counts toward the 250,000 path limit.
- Insert measures each symbol's art once for the whole placement scan.
- Generate after Cancel starts once the canceled run's thread has
  ended, so one thread makes styles at a time.
- The panel shows a job's results only while its document is active,
  and a preview that leaves part of its variation out says so.
- ui.conceptVector.generate runs the panel's Generate, and the button
  goes through it.
- A provider that cannot run a request is refused with the capability
  it lacks: an image as input, vector art as output, or a prompt.
- docs/roadmap.md: the Concept to Vector paragraph is removed, since
  docs/target-app-parity.md carries the progress line.

New catalog rows for the new messages and the preview note.
2026-11-19 15:22:00 -08:00
dotCooCoo aa0e47006a Concept to Vector: traced lines keep their square ends
Image Trace marks a centerline whose ink ends straight as square-capped, but
the built-in styles dropped the flag, so Insert and the panel's previews gave
every line round ends. A variation's path now carries `square_caps`, Insert
sets the stroke's cap from it, and previews paint square ends for it.
2026-11-13 18:07:53 -08:00
dotCooCoo 73bef68024 Concept to Vector: offline Image Trace styles behind a provider boundary
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
2026-11-12 20:41:06 -08:00