Web-Based Raster-to-Vector Conversion
Upload an image for raster-to-vector conversion; the resulting DXF file is downloaded automatically.
The core conversion functionality of the library is available free of charge, subject to certain restrictions.
The restrictions are as follows:
- Post-processing restrictions The library supports 18 types of post-processing, but the web version offers only two choices: run a predefined set of operations or perform no post-processing.
- Image size restrictions Files must be no larger than 5 MB, with a maximum width or height of 8,000 pixels and a maximum of 32 million pixels in total.
- Conversion rate limits Up to 20 files per hour and 3 files per minute.
- Only five image formats are supported: JPG, PNG, BMP, TIF and GIF.
These limits reduce server load. The library itself has no such restrictions.
Conversion requests are rate-limited to prevent excessive traffic from a single IP address.
If you remain concerned, please do not upload confidential images.
By purchasing the source code, you can use the library without these restrictions on a desktop computer or local server.
Web application hosted on Google Cloud Run (https://artlogic-alvec.cloud.run).
How to Use
(1) Conversion Interface (index.html)
Web application hosted on Google Cloud Run (https://artlogic-alvec.cloud.run).
Operation has also been verified on Microsoft Azure App Service and Amazon ECS Express Mode.
Uploaded images are deleted immediately, regardless of whether conversion succeeds.
If this is a concern, you can obtain the source code and run conversions on-premises without these limits.

Click this line to display information on obtaining the source code.
Click it again to hide the information.
Click to show details; click again to hide them.
You can obtain the source code if any of the following apply (click)
- You do not want to send confidential images to a server. You want to perform all processing on a local PC.
- You need to convert images larger than 8,000 × 8,000 or exceeding the 32-megapixel limit. Even gigapixel-scale images can be converted.
- You need to convert large numbers of images quickly without rate limits. The web version is limited to 3 images per minute and 20 per hour from the same IP address.
- You want fine-grained control over conversion parameters and post-processing. Fine-grained adjustment of conversion parameters.
- You want to deploy or sell your own web or desktop applications. Commercial use and web deployment are permitted.
- You simply prefer to run the software on-premises. Can be integrated into 32-bit or 64-bit Windows/Linux environments.
- You simply want to study the conversion algorithms. No dependencies on other libraries; all functionality is self-contained.
The on-premises version has no such limit; even 10,000 files per hour are possible.
18 post-processing operations, including arc conversion, spline conversion, sharp-corner enhancement and intersection-coordinate correction.
The restriction is on disclosing the source code to third parties.
Includes complete source code for deployment on your own server.
Tested on Google Cloud Run, Azure App Service and Amazon ECS Express Mode.
Includes Python calling code and complete Python/Flask/Gunicorn source code. Includes Python desktop application source code.
(2) Conversion via index.html: “Select Input Image” and “Convert to DXF”
Select an image and click the “Convert to DXF” button.
First, select an image file on your local PC.
Set conversion options as needed and click “Convert”; the image is uploaded and converted.
The resulting DXF file is automatically saved to the download location configured in your browser.
(3) Setting Conversion Options
- Conversion accuracy Higher accuracy produces more vertices; lower accuracy produces fewer.
- Resolution setting Specify resolution in DPI. Enter 0 to use the resolution information stored in the image file.
- Post-processing setting Choose whether to apply post-processing. Although 18 operations are available in the library, this interface provides four options, including no post-processing.
- Preprocessing setting Choose one of four preprocessing modes, including extracting outlines of filled shapes or centerlines of line drawings.
This information is needed to convert raster pixel units into millimeters in the DXF file.
Smaller values provide higher accuracy and more vertices.
Larger values provide lower accuracy and fewer vertices.
Enter "0" to use the resolution information in the image file.
The web-based automatic nesting application can automatically correct camera images and estimate their resolution, but this application does not support camera images.
Three of the 18 post-processing operations are performed together with fixed parameters: merging nearby vertices, removing redundant collinear vertices, and sharpening acute corners. They cannot be selected individually.
You can also enable or disable arc conversion and joining (extending lines through intersections), but these two operations cannot be selected separately.
- (0)Run the three post-processing operations; no arc conversion or joining.
- (1)Run the three post-processing operations, plus arc conversion and joining.
- (2)No post-processing, arc conversion or joining.
- (3)No three-operation post-processing; enable arc conversion and joining.
- (0)Perform outline conversion on the entire raster image.
- (1)Perform centerline conversion on the entire raster image.
- (2)Perform outline conversion on filled shapes only.
- (3)Perform centerline conversion on line drawings only.
(4) Calling Server Functions with curl
All server functions can be accessed using the Linux curl command.
| Key | Description | Example key=value |
|---|---|---|
| input_file | Name of the input file to upload. The "@" symbol indicates that the following filename refers to a file to send. | input_file=@sample1.bmp |
| threshold | Threshold value (0.8–10.0) | threshold=1.0 |
| dpi | Resolution (DPI): 0 uses the resolution information in the image file. | dpi=300 |
| flag | Post-processing flag
|
flag=0 |
| centerline | Conversion target and preprocessing
|
centerline=0 |
Using Flask on a Local Server
If you start Flask with the following command:
flask --app app run \
--debug \
--host 127.0.0.1 \
--port 5000
Open index.html at either of the following URLs:
http://127.0.0.1:5000 or http://localhost:5000
Or call the /convert endpoint using curl:
curl \
-F "input_file=@sample1.bmp" \
-F "threshold=1.0" \
-F "dpi=300.0" \
-F "flag=0" \
-F "centerline=0" \
http://127.0.0.1:5000/convert \
--output result1.dxf
The same curl command can be used when the server is started with Gunicorn as follows:
$ gunicorn \
--bind 127.0.0.1:5000 \
--workers 1 \
--threads 1 \
--timeout 120 \
--access-logfile - \
--error-logfile - \
app:app
Using the Google Cloud Run URL
This free web application requires no authentication, so you can call it using curl as follows.
To prevent excessive traffic, requests from the same IP address are subject to these limits:
- Up to 3 requests per minute
- Up to 20 requests per hour
curl \
-F "input_file=@sample1.bmp" \
-F "threshold=1.0" \
-F "dpi=300.0" \
-F "flag=0" \
-F "centerline=0" \
https://artlogic-alvec.cloud.run \
--output result1.dxf
(6) Source Code
The library source code is available for purchase.
The complete source code package includes:
The library can be built on Windows and Linux.
Includes complete CMake (CMakeLists.txt) configuration for Linux.
Although the conversion functionality is available through the web application,
please purchase the source code through Shopify or contact us directly.
Other included materials are listed below.
C++ Class Library Reference Manual
Provided as HTML files.