vectorise

v0.2.0
io.github.JonathanWeerakkody/vectorise Checked 3 days ago Published 4 months ago

Vectorize images to SVG and export to PDF, EPS, DXF, PNG, JPG, or WEBP via Vectorise.Me.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

vectorize_image Vectorize image to SVG

Convert a raster image file (JPG, PNG, BMP, WEBP, AVIF — up to 25 MB) into a scalable SVG vector. Writes the SVG next to the input file (or to output_path) and returns the saved path plus conversion stats. For most images just set `preset` (logo, photo, illustration, pixel_art, technical_drawing) or leave everything unset for full auto-detection. Use quality_tier to trade speed vs fidelity.

ParameterTypeDescription
image_path *stringAbsolute path to the input image file
color_modestringColour handling. Default color
output_pathstringWhere to save the SVG. Defaults to the input path with a .svg extension
palette_countintegerTarget number of colours (sets manual palette mode)
preserve_exact_colorsbooleanKeep source colours without merging similar shades
presetstringFriendly preset matching the app UI: auto (engine detects image type), logo (sharp edges, exact brand colours), illustration (drawings/cartoons/clipart), photo (smooth tonal gradients), pixel_art (pix…
quality_profilestringAdvanced: engine profile. Prefer `preset` unless you know the engine. Default auto
quality_tierstringSpeed/quality trade-off. Default balanced_crisp (credits: fast=1, balanced_crisp=2, high_precision=5)

vectorize_batch Vectorize multiple images to SVG

Convert up to 20 raster image files to SVG in one call. The same settings (preset, quality_tier, etc.) apply to every image. Files are converted sequentially and each gets an independent result — one bad file does not fail the batch. SVGs are saved next to each input (or into output_dir). Credits are charged per successful conversion.

ParameterTypeDescription
image_paths *arrayAbsolute paths of the input image files (1–20)
color_modestringColour handling. Default color
output_dirstringDirectory to save all SVGs into. Defaults to saving next to each input file
palette_countintegerTarget number of colours (sets manual palette mode)
preserve_exact_colorsbooleanKeep source colours without merging similar shades
presetstringFriendly preset matching the app UI: auto (engine detects image type), logo (sharp edges, exact brand colours), illustration (drawings/cartoons/clipart), photo (smooth tonal gradients), pixel_art (pix…
quality_profilestringAdvanced: engine profile. Prefer `preset` unless you know the engine. Default auto
quality_tierstringSpeed/quality trade-off. Default balanced_crisp (credits: fast=1, balanced_crisp=2, high_precision=5)

export_svg Export SVG to another format

Convert an SVG file to PDF, EPS, DXF, PNG, JPG, or WEBP via Vectorise.Me. EPS and DXF require a Pro plan. Writes the result next to the input (or to output_path).

ParameterTypeDescription
format *stringTarget output format
svg_path *stringAbsolute path to the input SVG file
output_pathstringWhere to save the output. Defaults to the input path with the new extension

get_usage Get API usage and credits

Show the plan, API credit balance, and recent daily usage for the configured Vectorise.Me API key.

get_capabilities Get export capabilities

List available export formats and per-format options supported by the Vectorise.Me API. No auth required.