[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-5641":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":30,"readmeContent":31,"aiSummary":32,"trendingCount":16,"starSnapshotCount":16,"syncStatus":33,"lastSyncTime":34,"discoverSource":35},5641,"vtracer","visioncortex\u002Fvtracer","visioncortex","Raster to Vector Graphics Converter","https:\u002F\u002Fwww.visioncortex.org\u002Fvtracer\u002F",null,"Rust",6180,412,61,12,0,6,44,196,31,38.85,"MIT License",false,"master",true,[27,28,29],"image-procesing","rust","svg","2026-06-12 02:01:13","\u003Cdiv align=\"center\">\n\n  \u003Cimg src=\"docs\u002Fimages\u002Fvisioncortex-banner.png\">\n  \u003Ch1>VTracer\u003C\u002Fh1>\n\n  \u003Cp>\n    \u003Cstrong>Raster to Vector Graphics Converter\u003C\u002Fstrong>\n  \u003C\u002Fp>\n\n  \u003Ch3>\n    \u003Ca href=\"https:\u002F\u002Fwww.visioncortex.org\u002Fvtracer-docs\">Article\u003C\u002Fa>\n    \u003Cspan> | \u003C\u002Fspan>\n    \u003Ca href=\"https:\u002F\u002Fwww.visioncortex.org\u002Fvtracer\u002F\">Web App\u003C\u002Fa>\n    \u003Cspan> | \u003C\u002Fspan>\n    \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fvisioncortex\u002Fvtracer\u002Freleases\">Download\u003C\u002Fa>\n  \u003C\u002Fh3>\n\n  \u003Csub>Built with 🦀 by \u003Ca href=\"https:\u002F\u002Fwww.visioncortex.org\u002F\">The Vision Cortex Research Group\u003C\u002Fa>\u003C\u002Fsub>\n\u003C\u002Fdiv>\n\n## Introduction\n\nvisioncortex 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.\n\nComparing to [Potrace](http:\u002F\u002Fpotrace.sourceforge.net\u002F) which only accept binarized inputs (Black & White pixmap), VTracer has an image processing pipeline which can handle colored high resolution scans. tl;dr: Potrace uses a `O(n^2)` fitting algorithm, whereas `vtracer` is entirely `O(n)`.\n\nComparing to Adobe Illustrator's [Image Trace](https:\u002F\u002Fhelpx.adobe.com\u002Fillustrator\u002Fusing\u002Fimage-trace.html), VTracer's output is much more compact (less shapes) as we adopt a stacking strategy and avoid producing shapes with holes.\n\nVTracer 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.\n\nTechnical descriptions of the [tracing algorithm](https:\u002F\u002Fwww.visioncortex.org\u002Fvtracer-docs) and [clustering algorithm](https:\u002F\u002Fwww.visioncortex.org\u002Fimpression-docs).\n\n## Web App\n\nVTracer and its [core library](\u002F\u002Fgithub.com\u002Fvisioncortex\u002Fvisioncortex) is implemented in [Rust](\u002F\u002Fwww.rust-lang.org\u002F). 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 + wasm platform.\n\n![screenshot](docs\u002Fimages\u002Fscreenshot-01.png)\n\n![screenshot](docs\u002Fimages\u002Fscreenshot-02.png)\n\n## Cmd App\n\n```sh\nvisioncortex VTracer 0.6.0\nA cmd app to convert images into vector graphics.\n\nUSAGE:\n    vtracer [OPTIONS] --input \u003Cinput> --output \u003Coutput>\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n        --colormode \u003Ccolor_mode>                 True color image `color` (default) or Binary image `bw`\n    -p, --color_precision \u003Ccolor_precision>      Number of significant bits to use in an RGB channel\n    -c, --corner_threshold \u003Ccorner_threshold>    Minimum momentary angle (degree) to be considered a corner\n    -f, --filter_speckle \u003Cfilter_speckle>        Discard patches smaller than X px in size\n    -g, --gradient_step \u003Cgradient_step>          Color difference between gradient layers\n        --hierarchical \u003Chierarchical>\n            Hierarchical clustering `stacked` (default) or non-stacked `cutout`. Only applies to color mode.\n\n    -i, --input \u003Cinput>                          Path to input raster image\n    -m, --mode \u003Cmode>                            Curver fitting mode `pixel`, `polygon`, `spline`\n    -o, --output \u003Coutput>                        Path to output vector graphics\n        --path_precision \u003Cpath_precision>        Number of decimal places to use in path string\n        --preset \u003Cpreset>                        Use one of the preset configs `bw`, `poster`, `photo`\n    -l, --segment_length \u003Csegment_length>\n            Perform iterative subdivide smooth until all segments are shorter than this length\n\n    -s, --splice_threshold \u003Csplice_threshold>    Minimum angle displacement (degree) to splice a spline\n```\n\n## Downloads\n\nYou can download pre-built binaries from [Releases](https:\u002F\u002Fgithub.com\u002Fvisioncortex\u002Fvtracer\u002Freleases).\n\nYou can also install the program from source from [crates.io\u002Fvtracer](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fvtracer):\n\n```sh\ncargo install vtracer\n```\n\n> You are strongly advised to not download from any other third-party sources \n\n### Usage\n\n```sh\n.\u002Fvtracer --input input.jpg --output output.svg\n```\n\n### Rust Library\n\nYou can install [`vtracer`](https:\u002F\u002Fcrates.io\u002Fcrates\u002Fvtracer) as a Rust library.\n\n```sh\ncargo add vtracer\n```\n\n### Python Library\n\nSince `0.6`, [`vtracer`](https:\u002F\u002Fpypi.org\u002Fproject\u002Fvtracer\u002F) is also packaged as Python native extensions, thanks to the awesome [pyo3](https:\u002F\u002Fgithub.com\u002FPyO3\u002Fpyo3) project.\n\n```sh\npip install vtracer\n```\n\n## In the wild\n\nVTracer is used by the following products (open a PR to add yours):\n\n\u003Ctable>\n  \u003Ctbody>\n    \u003Ctr>\n      \u003Ctd>\u003Ca href=\"https:\u002F\u002Flogo.aliyun.com\u002Flogo#\u002Fname\">\u003Cimg src=\"docs\u002Fimages\u002Faliyun-logo.png\" width=\"250\"\u002F>\u003C\u002Fa>\n      \u003Cbr>Smart logo design\n      \u003C\u002Ftd>\n      \u003Ctd>\u003C\u002Ftd>\n    \u003C\u002Ftr>\n  \u003C\u002Ftbody>\n\u003C\u002Ftable>\n\n## Citations\n\nVTracer has since been cited by a few academic papers in computer graphics \u002F vision research. Please kindly let us know if you have cited our work:\n\n+ SKILL 2023 [Framework to Vectorize Digital Artworks for Physical Fabrication based on Geometric Stylization Techniques](https:\u002F\u002Fwww.researchgate.net\u002Fpublication\u002F374448489_Framework_to_Vectorize_Digital_Artworks_for_Physical_Fabrication_based_on_Geometric_Stylization_Techniques)\n+ arXiv 2023 [Image Vectorization: a Review](https:\u002F\u002Farxiv.org\u002Fabs\u002F2306.06441)\n+ arXiv 2023 [StarVector: Generating Scalable Vector Graphics Code from Images](https:\u002F\u002Farxiv.org\u002Fabs\u002F2312.11556)\n+ arXiv 2024 [Text-Based Reasoning About Vector Graphics](https:\u002F\u002Farxiv.org\u002Fabs\u002F2404.06479)\n+ arXiv 2024 [Delving into LLMs' visual understanding ability using SVG to bridge image and text](https:\u002F\u002Fopenreview.net\u002Fpdf?id=pwlm6Po61I)\n\n## How did VTracer come about?\n\n> The following content is an excerpt from my [unpublished memoir](https:\u002F\u002Fgithub.com\u002Fvisioncortex\u002Fmemoir).\n\nAt my teenage, two open source projects in the vector graphics space inspired me the most: Potrace and Anti-Grain Geometry (AGG).\n\nMany years later, in 2020, I was developing a video processing engine. And it became evident that it requires way more investment to be commercially viable. So before abandoning the project, I wanted to publish *something* as open-source for posterity. At that time, I already developed a prototype vector graphics tracer. It can convert high-resolution scans of hand-drawn blueprints into vectors. But it can only process black and white images, and can only output polygons, not splines.\n\nThe plan was to fully develop the vectorizer: to handle color images and output splines. I recruited a very talented intern, [@shpun817](https:\u002F\u002Fgithub.com\u002Fshpun817), to work on VTracer. I grafted the frontend of the video processing engine - the [\"The Clustering Algorithm\"](https:\u002F\u002Fwww.visioncortex.org\u002Fimpression-docs#the-clustering-algorithm) as the pre-processor.\n\nThree months later, we published the first version on Reddit. Out of my surprise, the response of such an underwhelming project was overwhelming.\n\n## What's next?\n\nThere are several things in my mind:\n\n1. Path simplification. Implement a post-process filter to the output paths to further reduce the number of splines.\n\n2. Perfect cut-out mode. Right now in cut-out mode, the shapes do not share boundaries perfectly, but have seams.\n\n3. Pencil tracing. Instead of tracing shapes as closed paths, may be we can attempt to skeletonize the shapes as open paths. The output would be clean, fixed width strokes.\n\n4. Image cleaning. Right now the tracer works best on losslessly compressed pngs. If an image suffered from jpeg noises, it could impact the tracing quality. We might be able to develop a pre-filtering pass that denoises the input.\n\nIf you are interested in working on them or willing to sponsor its development, feel free to get in touch.\n","VTracer 是一个将光栅图像（如 JPG 和 PNG）转换为矢量图形（SVG）的开源软件。它采用先进的图像处理流水线，能够处理彩色高分辨率扫描，并通过 O(n) 的高效算法实现曲线追踪，输出紧凑的矢量文件。相比 Potrace 仅支持黑白像素图输入和 Adobe Illustrator 的 Image Trace 功能，VTracer 在处理复杂色彩及细节保留方面表现更优，同时生成的文件体积更小。该项目特别适合用于历史蓝图等高分辨率扫描件的矢量化处理，同时也适用于低分辨率像素艺术作品的转换，如复古游戏美术资源。基于 Rust 语言开发，确保了算法的高效与稳定性，且易于集成到 Web 应用中。",2,"2026-06-11 03:04:30","top_language"]