< Web-Based Raster-to-Vector Conversion - ArtLogic
ArtLogic - Image Processing, Geometric Processing and Optimization Technology

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:

  1. Post-processing restrictions
  2. 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.
  3. Image size restrictions
  4. 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.
    These limits reduce server load. The library itself has no such restrictions.
  5. Conversion rate limits
  6. Up to 20 files per hour and 3 files per minute.
    Conversion requests are rate-limited to prevent excessive traffic from a single IP address.
  7. Only five image formats are supported: JPG, PNG, BMP, TIF and GIF.
Uploaded image files are deleted immediately after conversion, whether successful or unsuccessful.
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.

Full view of the web-based raster-to-vector conversion interface
Full view of the web-based raster-to-vector conversion interface
Switch between English and Japanese
Switch between English and Japanese
Information on obtaining the source code
“You can obtain the source code if any of the following apply (click)”
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)

  1. You do not want to send confidential images to a server.
  2.   You want to perform all processing on a local PC.
  3. You need to convert images larger than 8,000 × 8,000 or exceeding the 32-megapixel limit.
  4.   Even gigapixel-scale images can be converted.
  5. You need to convert large numbers of images quickly without rate limits.
  6.   The web version is limited to 3 images per minute and 20 per hour from the same IP address.
      The on-premises version has no such limit; even 10,000 files per hour are possible.
  7. You want fine-grained control over conversion parameters and post-processing.
  8.   Fine-grained adjustment of conversion parameters.
      18 post-processing operations, including arc conversion, spline conversion, sharp-corner enhancement and intersection-coordinate correction.
  9. You want to deploy or sell your own web or desktop applications.
  10.   Commercial use and web deployment are permitted.
      The restriction is on disclosing the source code to third parties.
  11. You simply prefer to run the software on-premises.
  12.   Can be integrated into 32-bit or 64-bit Windows/Linux environments.
      Includes complete source code for deployment on your own server.
  13. You simply want to study the conversion algorithms.
  14.   No dependencies on other libraries; all functionality is self-contained.
      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.
Contact:ArtLogic Inc. website Download/purchase:ArtLogic Inc. Shopify page (coming soon)

(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.

Before selecting an input image
Before selecting an input image
Selecting an image for conversion
Select an image to convert from your local PC.
The selected image filename is displayed.
The selected image filename is displayed.
Convert to a DXF file and download
Convert to a DXF file and download
Checking the downloaded file
Checking the downloaded file

(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.
    This information is needed to convert raster pixel units into millimeters in the DXF 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.

Accuracy/vertex-count balance parameter
Set the accuracy/vertex-count balance parameter between 0.8 and 10.0.
Smaller values provide higher accuracy and more vertices.
Larger values provide lower accuracy and fewer vertices.
Resolution setting
Specify the resolution.
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.
Post-processing options
Post-processing options
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.
Conversion type and preprocessing options
Select outline conversion or centerline conversion. You can also restrict outline conversion to filled shapes or centerline conversion to line drawings.
  • (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
  • (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.
flag=0
centerline Conversion target and preprocessing
  • (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.
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:

  • Library source code (C++/C)
  • There are no dependencies on libraries such as OpenCV. The library can be built using only the supplied source code.
    The library can be built on Windows and Linux.
  • Project files / build files
  • Includes Visual Studio 2022/2026 project files for Windows (also compilable and linkable with older VS 2008–2019 versions).
    Includes complete CMake (CMakeLists.txt) configuration for Linux.
  • Sample projects
  • An "app.py" file for Flask/Gunicorn web applications.
    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.