Vectorize images using simple API calls. It’s easy, fast, safe, and free! The source raster image may accept formats such as JPG, TIFF, BMP, GIF and PNG. The output image is an SVG file format. Using the Vectorization API, you can quickly and easily convert a bitmap to vector graphics!
How to Vectorize Images
Provide a URL
You need to provide a URL where the image file is hosted. Vectorization API supports JPG, PNG, BMP, GIF, and TIFF image formats.
Specify Vectorization Options
You can specify vectorization options. Otherwise, the image vectorization will occur with the default options.
Run the Example
Click the „Run Example“ button. Your image file will be converted to the vector SVG format.
View the Result
A link to download the result will be available immediately after the vectorization is completed. Download the SVG image to view.
How It Works
The /html/vectorize is the Vectorization API endpoint responsible for handling image vectorization. Using a vectorization endpoint, you communicate your intent to the Vectorization API, and now it knows which process to initiate and execute. Let’s consider how it typically works:
The /html/vectorize endpoint has a certain URL that you send your HTTP POST requests to initiate a PNG vectorization. The URL: /html/vectorize.
To convert image to vector, you need to specify a URL where the image file is hosted and set vectorization options to customize the process.
Once the Vectorization API receives your request, it starts the image to vector conversion.
After the image to SVG conversion is complete, the Vectorization API sends back an HTTP response to your request that includes a downloadable link to the SVG file.
Frequently Asked Questions
1. How can I convert image to SVG using Vectorization API?
Our Vectorization API has been designed to allow you to easily and quickly vectorize images. To get started, enter the image file's URL in the input box and click the „Run Example“ button to start image to SVG conversion. Download link of the result SVG file will be available instantly after the vectorization is completed. Then, download the SVG image to view. Vectorization API converts raster bitmap images into vector artwork constructed from outlines, and you can apply vectorization options to get the best image vectorization result.
2. What do vectorization options mean?
1. A threshold is a value used to determine whether a pixel in an image should be considered part of an object or background during the image to vector conversion. The default `error_threshold` value is 30. 2. The maximum number of iterations is used to refine the vectorization results gradually. The default `max_iterations` value is 30. 3. Color quantization is the process of selecting a limited number of colors to use in an image. Its algorithms determine which colors from the larger set of colors remain in the new image and how the discarded colors are mapped to the remaining ones. The default `colors_limit` value is 25. 4. `line-width` - defines lines’ width for marking the contours. The default value is 1.
3. How many images can I convert to SVG using Vectorization API?
The API allows you to convert one image to SVG at a time, thus you can vectorize one file per request. Convert image to SVG any number of times! But remember, you can only upload one document per operation.
4. What is image vectorization?
Image vectorization is a complex computational process of converting raster images into vector graphics made up of lines, curves, and other geometric shapes. Vector graphics are constructed and stored as a set of commands, numbers, and formulas, not in a pixel grid as in bitmaps. Therefore vectorization allows us to scale and rotate pictures without losing quality.
5. Is image vectorization free?
Yes! Vectorize images with simple Vectorization API calls. It's simple, fast and safe. Best of all, it’s completely free and will stay free!
6. What is the image vectorization for?
Vector images are scalable without losing any quality. Also, vectorization can be used to update or recover images. Vectorized images are more resistant to image recognition techniques like face recognition because image recognizers are usually pixel-oriented.
Convert HTML, SVG, MHTML, EPUB, and Markdown documents to PDF, DOCX, XPS, JPG, PNG, and more destination formats: