Vectorizer API Help

Vectorizer

Overview

This is a small API that aim to convert a raster image into SVG.

Usage

For simplicity, I choose RapidAPI as gateway access to the API. In order to be able to use the API, you'll need to create a use in the RapidApi and subscribe to this API.

curl --request POST \ --url https://vectorizer.p.rapidapi.com/ \ --header 'Content-Type: application/json' \ --header 'x-rapidapi-host: vectorizer.p.rapidapi.com' \ --header 'x-rapidapi-key: daf8f5d58dmsh170db59ee3b90c5p1e24e3jsn58b6bf16a12e'

Parameters

The parameters accepted let you control source and input format as well as color

Name

Description

Accepted values

Reference

source_type

Defines where the image is, either in a web-site or as base 64 encoded string

url|inline

It is strong related with source_image

source_image

Is the image itself

Depends on source_type, it could be a URL that points to image, or the image encoded as base64

Max size constraints

source_format

Is the type of image, e.g. png or jpg

Any string

Optional

color_mode

Defines the fitting curve

pixel | polygon | spline

Spline is the default value

preset

Allows to define color of the result image

bw (black and white)| photo

photo is the default value

Last modified: 21 October 2024