post-vectorize-inferences
Convert raster images to scalable vector graphics (SVG) by analyzing shapes, colors, and edges to create editable vector paths.
Instructions
Advanced vectorization of an image.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| originalAssets | No | If set to true, returns the original asset without transformation | |
| dryRun | No | ||
| mode | No | Curver fitting mode `none`, `polygon`, `spline` | |
| image | Yes | The asset ID (example: "asset_GTrL3mq4SXWyMxkOHRxlpw") to vectorize. | |
| layerDifference | No | Represents the color difference between gradient layers (higher value will reduce the number of layers) Only applicable to `color` colorMode. | |
| maxIterations | No | Max iterations for rendering | |
| cornerThreshold | No | Minimum momentary angle (degree) to be considered a corner (higher value will smooth corners) Only applicable to `spline` mode. | |
| colorPrecision | No | Number of significant bits to use in an RGB channel, min 1, max 16 (higher value will increase precision) Only applicable to `color` colorMode. | |
| spliceThreshold | No | Minimum angle displacement (degree) to splice a spline (higher value reduce accuracy) Only applicable to `spline` mode. | |
| lengthThreshold | No | Minimum length of a segment (higher value will generate more coarse output) Only applicable to `spline` mode. | |
| colorMode | No | Color mode `bw`, `color`. If `bw`, the image will be considered as black and white. | |
| filterSpeckle | No | Discard patches smaller than X px in size (higher value will reduce the number of patches, cleaner output) | |
| preset | No | If preset given, all other parameters will be ignored (mode, colorMode, filterSpeckle, ...), except for custom. | |
| pathPrecision | No | Number of decimal places to use in path string |