All Projects → visioncortex → Vtracer

visioncortex / Vtracer

Licence: other
Raster to Vector Graphics Converter

Programming Languages

rust
11053 projects

Labels

Projects that are alternatives of or similar to Vtracer

Spongedown
Markdown with svg bob support
Stars: ✭ 234 (-8.95%)
Mutual labels:  svg
Lunasvg
A standalone c++ library to create, animate, manipulate and render SVG files.
Stars: ✭ 243 (-5.45%)
Mutual labels:  svg
Swift Utils
A collection of handy swift utils
Stars: ✭ 253 (-1.56%)
Mutual labels:  svg
Mapshaper
Tools for editing Shapefile, GeoJSON, TopoJSON and CSV files
Stars: ✭ 2,813 (+994.55%)
Mutual labels:  svg
Term Sheets
Create animated terminal presentations. Export as SVG, animated GIF, or HTML+CSS
Stars: ✭ 243 (-5.45%)
Mutual labels:  svg
Darklaf
Darklaf - A themeable swing Look and Feel based on Darcula-Laf
Stars: ✭ 249 (-3.11%)
Mutual labels:  svg
Vue Content Loader
SVG component to create placeholder loading, like Facebook cards loading.
Stars: ✭ 2,790 (+985.6%)
Mutual labels:  svg
Three.js
JavaScript 3D Library.
Stars: ✭ 78,237 (+30342.41%)
Mutual labels:  svg
Minify
Go minifiers for web formats
Stars: ✭ 2,824 (+998.83%)
Mutual labels:  svg
Pathanimator
Moves a DOM element along an SVG path (or do whatever along a path...)
Stars: ✭ 251 (-2.33%)
Mutual labels:  svg
Vectorlogozone
3,000+ gorgeous SVG logos, perfect for your README or credits page
Stars: ✭ 239 (-7%)
Mutual labels:  svg
Python Barcode
㊙️ Create standard barcodes with Python. No external dependencies. 100% Organic Python.
Stars: ✭ 241 (-6.23%)
Mutual labels:  svg
Egal
easy drawing in jupyter
Stars: ✭ 251 (-2.33%)
Mutual labels:  svg
Victor
Ruby SVG Image Builder
Stars: ✭ 237 (-7.78%)
Mutual labels:  svg
Spinners React
Lightweight SVG/CSS spinners for React
Stars: ✭ 254 (-1.17%)
Mutual labels:  svg
Svg2pdf.js
A javascript-only SVG to PDF conversion utility that runs in the browser. Brought to you by yWorks - the diagramming experts
Stars: ✭ 231 (-10.12%)
Mutual labels:  svg
Laue
🖖📈 Modern charts for Vue 2.0
Stars: ✭ 245 (-4.67%)
Mutual labels:  svg
Php Svg
Vector graphics (SVG) library for PHP
Stars: ✭ 256 (-0.39%)
Mutual labels:  svg
Rough
Create graphics with a hand-drawn, sketchy, appearance
Stars: ✭ 16,472 (+6309.34%)
Mutual labels:  svg
Svg Filters
🔮 Fildrop. A set of custom SVG Filters
Stars: ✭ 251 (-2.33%)
Mutual labels:  svg

VTracer

Raster to Vector Graphics Converter built on top of visioncortex

Document | Demo | Download

Built with 🦀 by The Vision Cortex Research Group

Introduction

visioncortex VTracer is an open source software to convert raster images (like jpg & png) into vector graphics (svg). It can vectorize graphics and photographs and trace the curves to output compact vector files.

Comparing to Potrace which only accept binarized inputs (Black & White pixmap), VTracer has an image processing pipeline which can handle colored high resolution scans.

Comparing to Adobe Illustrator's Live Trace, VTracer's output is much more compact (less shapes) as we adopt a stacking strategy and avoid producing shapes with holes.

VTracer is originally designed for processing high resolution scans of historic blueprints up to gigapixels. At the same time, VTracer can also handle low resolution pixel art, simulating image-rendering: pixelated for retro game artworks.

A technical description of the algorithm is on visioncortex.org/vtracer-docs.

Web App

VTracer and its core library is implemented in Rust. It provides us a solid foundation to develop robust and efficient algorithms and easily bring it to interactive applications. The webapp is a perfect showcase of the capability of the Rust + HTML5 platform.

screenshot

screenshot

Command Line

visioncortex VTracer 0.3.0
A cmd app to convert images into vector graphics.

USAGE:
    vtracer [OPTIONS] --input <input> --output <output>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
        --colormode <color_mode>                 True color image `color` (default) or Binary image `bw`
    -p, --color_precision <color_precision>      Number of significant bits to use in an RGB channel
    -c, --corner_threshold <corner_threshold>    Minimum momentary angle (degree) to be considered a corner
    -f, --filter_speckle <filter_speckle>        Discard patches smaller than X px in size
    -g, --gradient_step <gradient_step>          Color difference between gradient layers
        --hierarchical <hierarchical>
            Hierarchical clustering `stacked` (default) or non-stacked `cutout`. Only applies to color mode.

    -i, --input <input>                          Path to input raster image
    -m, --mode <mode>                            Curver fitting mode `pixel`, `polygon`, `spline`
    -o, --output <output>                        Path to output vector graphics
        --preset <preset>                        Use one of the preset configs `bw`, `poster`, `photo`
    -l, --segment_length <segment_length>
            Perform iterative subdivide smooth until all segments are shorter than this length

    -s, --splice_threshold <splice_threshold>    Minimum angle displacement (degree) to splice a spline

Usage

./vtracer --input input.jpg --output output.svg

Library

The library can be found on crates.io/vtracer.

Install

vtracer = "*"
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].