Skip to main content
Glama

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
NameRequiredDescriptionDefault
originalAssetsNoIf set to true, returns the original asset without transformation
dryRunNo
modeNoCurver fitting mode `none`, `polygon`, `spline`
imageYesThe asset ID (example: "asset_GTrL3mq4SXWyMxkOHRxlpw") to vectorize.
layerDifferenceNoRepresents the color difference between gradient layers (higher value will reduce the number of layers) Only applicable to `color` colorMode.
maxIterationsNoMax iterations for rendering
cornerThresholdNoMinimum momentary angle (degree) to be considered a corner (higher value will smooth corners) Only applicable to `spline` mode.
colorPrecisionNoNumber of significant bits to use in an RGB channel, min 1, max 16 (higher value will increase precision) Only applicable to `color` colorMode.
spliceThresholdNoMinimum angle displacement (degree) to splice a spline (higher value reduce accuracy) Only applicable to `spline` mode.
lengthThresholdNoMinimum length of a segment (higher value will generate more coarse output) Only applicable to `spline` mode.
colorModeNoColor mode `bw`, `color`. If `bw`, the image will be considered as black and white.
filterSpeckleNoDiscard patches smaller than X px in size (higher value will reduce the number of patches, cleaner output)
presetNoIf preset given, all other parameters will be ignored (mode, colorMode, filterSpeckle, ...), except for custom.
pathPrecisionNoNumber of decimal places to use in path string

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pasie15/scenario.com-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server