Lossless Line Drawing to SVG Conversion

Library for lossless conversion of raster line drawings to vectorized SVG files.

https://github.com/karsonkevin2/line-drawing-to-svg

You are now following this Submission

Functions that provide different ways for lossless conversion of bitmaps to the SVG file format. Supports creating output files composed of polylines, 8-connectivity lines, and pixel connections.

These functions improve upon alternatives by using 1:1 conversion by examining the pixels rather than using edge detection or machine learning approaches.

This library provides an intermediate step in importing processed files to other applications which require vector files as input. It was designed for the purpose of importing skeletonized heatmap data to OpenStreetMap.

Cite As

Karson Sommer (2026). Lossless Line Drawing to SVG Conversion (https://github.com/karsonkevin2/line-drawing-to-svg/releases/tag/v1.2), GitHub. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.2

To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.