Find your next open-source project

Search by name, purpose, or keyword, or paste a GitHub URL. Start with / to search agent skills (e.g. /pdf)

A Rust PNG-to-SVG vectorizer with CLI, browser studio, and HTTP API for turning raster images into editable vector graphics.

287
16
Rust
MIT
1 day old
+151 stars in 24h

Overview

Rustorizer converts raster images (PNG, JPEG, WebP, BMP, GIF) into editable SVG. It ships three ways to run the same engine: a command-line tool, a local browser studio, and an HTTP API suitable for self-hosting. Output is designed to be deterministic for identical inputs and settings.

The vectorizer traces actual pixels instead of using generative AI to guess shapes. It avoids hairline gaps by sharing boundary points between neighboring colors, resolves anti-aliased edges with a Markov random field, rebuilds smooth color transitions as SVG gradients, and snaps simple geometry to <circle>, straight-line triangles, and rectangles (how it works).

It fits designers and developers who need clean, editable vector output from logos, icons, clipart, or line art, and teams that want to expose conversion as an API.

Quick start

Install with the beginner script inside a clone of the repository. It installs Rust if needed, builds the project, installs the rustorizer command, and adds it to PATH:

git clone https://github.com/dqev/rustorizer.git
cd rustorizer
./install.sh

Open a new terminal, then convert an image. The default output name replaces the input extension with .svg:

rustorizer logo.png
# writes logo.svg

To specify an output path or pick a preset matching the artwork:

rustorizer icon.png clean.svg
rustorizer icon.png --preset clipart
rustorizer photo.jpg --preset photo

Other flags include --remove-background, --algorithm no-overlap, and --debug-xray (command-line options).

For the browser studio, run rustorizer ui and open http://127.0.0.1:8080/studio (browser app). Docker users can run docker compose up -d --build inside the cloned folder and open http://localhost:8080.

API use

Self-hosted deployments expose POST /v1/vectorize for multipart uploads and POST /v1/vectorize/json for base64 input. The upload and JSON body limit is 20 MB, and CORS is enabled:

curl http://127.0.0.1:8080/v1/vectorize \
  -F "file=@logo.png" \
  -F 'options={"algorithm":"overlap","format":"svg"}'

There is also POST /v1/palettes for color palette suggestions and GET /health for readiness checks (HTTP API).

Constraints

  • Building from source requires Rust and Cargo (rustup.rs); the advanced ./setup.sh installs into ~/.cargo/bin and may modify .zshrc or .bashrc, with --no-path to skip that.
  • The server binds to VECTOR_API_BIND, then PORT on 0.0.0.0, then 127.0.0.1:8080 by default (self-hosting).
  • Inputs are limited to 20 MB per upload or JSON request.
  • Conversion quality depends on the chosen preset and algorithm; the repository recommends matching the preset to the image type.
  • Licensed under MIT (license).

HotRepo's take

Rustorizer was recorded on the new-repository Rust list for 2026-12-01 with 108 stars, all gained within the window from 2026-11-30 to the following morning; it has no recorded GitHub all-language daily rank. That single early snapshot supports the fact of a fast first-day pickup, not a trend. The more durable observation is architectural: one core library is shared across CLI, web studio, and Axum-based API, so conversion behavior can stay consistent across all three entry points.

Written by AI from the project's public information and HotRepo's records, updated . The project's own docs are the source of truth.

You might also like

  1. deepfounder-ai/desigmaA local-first Rust interface design tool with Figma file import, aimed at designers who want their work to stay offline and editable.Rust570
  2. FortAwesome/Font-AwesomeAn icon set and CSS font toolkit so web and desktop UIs can show consistent SVG or webfont icons without hand-drawing each glyph.JavaScript76,997
  3. kubai087/kubai-iconsAn agent skill for drawing consistent animated icons, plus 2,800+ open-source icons for React, Vue and SVG.JavaScript327
  4. tabler/tabler-iconsA free MIT-licensed SVG icon set with 6,000+ outline and filled icons for web and app interfaces.JavaScript22,619
  5. DominikScholz/open-bot-avatarRenderer and JSON spec for SVG avatar characters with moods and pointer gaze, for agent UIs.TypeScript102