English · Español
Turn raster images (PNG, JPG, WebP, BMP) into clean vectors — SVG, DXF, EPS and PDF. It runs entirely on your machine, in the browser or as a desktop app: your images never leave your computer.
▶ Try it in your browser · ⬇ Download for macOS, Windows and Linux
- A calm, legible workspace: the canvas is a cutting mat, settings stay in one panel with the advanced ones folded away, and the interface is light, dark or follows your system (the button next to the language, or Settings).
- Clean geometry, not traced pixels: straight edges come out as single straight lines, corners are sharp and arcs are true circular arcs. A flat logo becomes the handful of nodes a designer would draw: the sample hexagon logo has about 50 nodes instead of several hundred.
- Automatic colour detection: the real colours of the image are found and used as-is, while the blended pixels of anti-aliased edges are ignored, so similar colours are never merged and no ghost outlines appear. JPEG noise is handled too: the near-identical shades compression leaves behind count as one colour.
- Sub-pixel tracing powered by vecline: Oklab colour quantization, anti-aliasing reconstruction, shared boundaries between neighbouring shapes and detection of circles, ellipses and rectangles. ImageTracerJS is available as an alternative engine.
- Two tracing methods
- Outline: filled colour regions, for logos, illustrations, pixel art or photos.
- Centerline: single-stroke paths, for laser cutters, plotters, CNC and sketches.
- Presets for logos, flat illustration, photos, sketches, pixel art and centerline, plus fine control over colours, tolerance, smoothing, corners, minimum area, contrast and noise reduction.
- Transparent background: removes the background around the subject and keeps the same colour inside it (the white of a logo stays white). The outline is fitted to the real edge, with no fringe. A PNG that is already transparent stays transparent, with the option switched on for you.
- No cracks between shapes: shapes that sit inside others are painted on top of a whole shape, so the background never shows through as a hairline at any zoom.
- Exact pixel art: pixel art can be traced along its own grid, square corners and all.
- Automatic re-tracing: changing any setting re-vectorizes the image (debounced, so dragging a slider doesn't flood the engine). Your node and colour edits are not lost: they stay one undo back, together with the settings they were made with.
- Measured fidelity, not estimated: the resulting SVG is rendered and compared with the original image using SSIM.
- Any image, any way: drop or paste PNG, JPG, WebP, GIF, AVIF, BMP, ICO, SVG, TGA or PPM/PGM; drag a built-in sample or an image from another web page onto the drop zone.
- Visual comparison: before/after split, side-by-side, vector only or raster only, outline mode and a pixel grid when zoomed in.
- Bézier node editor: move anchors and handles, toggle curve/corner, split segments, delete nodes and simplify paths, with undo and redo. It handles every SVG path command, arcs included, and stores edits compactly so the file doesn't grow.
- Palette management: the colour box shows the traced palette; click a colour to replace it across the whole drawing (gradients included) or make it transparent.
- Export: optimized SVG, PNG at @1x–@8x, React/Vue/Svelte components, DXF (laser/CNC), EPS (print) and vector PDF. Every format includes your node and colour edits. Copy the result as a PNG image to paste into any app, or drag the SVG from the status bar straight into another app or a folder.
- Remembers your choices: the settings you pick and how you export are kept for next time. The built-in samples bring their own preset without overwriting yours.
- 8 languages: English, Spanish, German, French, Italian, Portuguese, Chinese and Japanese. The app picks your system language and remembers your choice.
- Fully local: the engine runs in a Web Worker, so the interface never freezes, and nothing is uploaded anywhere. Fonts are bundled too, so the desktop app works offline. The only request the desktop app makes is to ask GitHub, at most once a day, for the latest version number, so it can tell you when a new release is out (no image or usage data is sent).
![]() |
![]() |
| macOS: the native menu bar, in your language | Settings (⌘,): language, appearance and updates |
Every release includes:
| Platform | File |
|---|---|
| macOS (Apple Silicon) | Vectopix-<version>-mac-arm64.dmg |
| macOS (Intel) | Vectopix-<version>-mac-x64.dmg |
| Windows | Vectopix-<version>-windows-setup.exe (installer) or -windows-portable.exe |
| Linux | Vectopix-<version>-linux-x86_64.AppImage or -linux-amd64.deb |
| Web (self-hosting) | Vectopix-<version>-web.zip: upload it to any static web server |
The apps are not signed with a paid developer certificate, so the first launch needs a confirmation:
- macOS: open the app, then go to System Settings → Privacy & Security and click Open Anyway.
- Windows: in the SmartScreen dialog, click More info → Run anyway.
- Linux: make the AppImage executable (
chmod +x Vectopix-*.AppImage) and run it.
Requirements: Node.js 20.19+ or 22.12+ (required by Vite 8).
git clone https://github.com/jgestal/Vectopix.git
cd Vectopix
npm install
npm run devOpen the URL Vite prints (usually http://localhost:5173). Drop an image, paste one with Ctrl/⌘+V or try one of the built-in samples.
| Command | What it does |
|---|---|
npm run dev |
Development server with HMR |
npm run build |
Type-check and production build into dist/ |
npm run preview |
Serve the production build |
npm test |
Run the unit tests (Vitest) |
npm run test:e2e |
Build and run the browser tests (Playwright, Chromium) |
npm run test:coverage |
Unit and integration tests with coverage (per-layer thresholds) |
npm run test:e2e:desktop |
Build and run the desktop app's tests (Electron, native menus) |
npm run lint |
Lint with Oxlint |
npm run desktop |
Build and open the desktop app (Electron) |
npm run dist:desktop |
Build the desktop installers for your OS into release/ |
- Bump
versioninpackage.json, add the version's section toCHANGELOG.mdand commit. - Tag the commit and push the tag:
git tag v1.2.3 && git push origin v1.2.3. - The Release workflow builds the apps on macOS, Windows and Linux plus the web zip, and publishes them as a GitHub release. Its notes are that version's CHANGELOG section plus the download table; a tag without a CHANGELOG section fails before anything is built.
To try a release first, run the Release workflow by hand (Actions → Release → Run workflow): it builds everything on the three systems and keeps the installers as workflow artifacts, without publishing anything.
Every push to main also runs the unit and browser tests and deploys the web version to GitHub Pages.
The desktop app has a full native menu bar, in your language, following each system's conventions (an application menu on macOS; About and Quit under Help and File on Windows and Linux):
| Menu | What's in it |
|---|---|
| File | New, Open Image… ⌘O, Open Recent (macOS), Sample Images, Save as SVG… ⌘S, Export… ⌘E, Copy SVG Code ⇧⌘C, Copy as PNG ⌥⌘C |
| Edit | Undo / Redo, clipboard, Simplify Nodes, Restore Original Trace, Settings… (Windows, Linux) |
| View | Compare / Side by Side / Vector Only / Original Only ⌘1–⌘4, Fill / Outlines / Node Editor, zoom ⌘+ ⌘− ⌘0 ⌘9, full screen |
| Image | Preset, tracing method, automatic colours, transparent background, Re-vectorize Now ⌘R |
| Help | Keyboard shortcuts, release notes, the web version, source code, Report a Problem… |
Items are enabled and checked to match what's on screen. Settings… (⌘,) holds the app's own preferences: language, appearance (light, dark or the system's, menus and dialogs included), automatic update checks, and restoring the remembered settings.
The app behaves like the rest of your desktop: Save and Export use the system's save dialog, starting in the folder you used last; the window is named after the image (with the unsaved-changes dot on macOS) and reopens where you left it; the Dock or taskbar icon shows a trace's progress. Installing it adds Vectopix to "Open with" for PNG, JPG, WebP, GIF, BMP, TGA and ICO images, without becoming their default app. Files opened from the Dock, Finder or "Open with" load straight in, and closing the window with unsaved hand edits asks first. On Windows and Linux, ⌘ is Ctrl.
About Vectopix — Vectopix is made by Juan Gestal · gestal.es · juan@gestal.es
| Shortcut | Action |
|---|---|
| ⌘/Ctrl + Z | Undo |
| ⌘/Ctrl + ⇧ + Z · ⌘/Ctrl + Y | Redo |
| ⌘/Ctrl + C | Copy the SVG (when no text is selected) |
| ⌘/Ctrl + V | Load an image from the clipboard |
| N / E | Node editor |
| W | Outline (wireframe) mode |
| S | Toggle split / vector only |
| D | Dual (side-by-side) view |
| Space + drag | Pan the canvas |
| Wheel / pinch | Zoom around the cursor |
| Del / ⌫ | Delete the selected node |
| F1 / ? | Show every shortcut |
src/
├── domain/ Pure rules: no libraries, no browser APIs, no React
│ ├── geometry/ SVG path data, document model, node editing, simplification
│ ├── vectorization/ Geometry refit, seam-free stacking, background removal, pixel grid
│ ├── palette/ Real-colour selection (JPEG noise, anti-aliasing blends), recolouring
│ ├── raster/ Cut-out and pixel-art detection
│ └── … Presets, undo history, drawing edits, shortcuts, export file names
├── application/ Use cases and the ports they need (ports.ts)
│ ├── vectorizeImage.ts Palette → tracing strategy → clean-up steps
│ ├── prepareImage.ts Decode, downscale, notices
│ ├── preferences.ts Remembered settings, validated on read
│ └── checkForUpdate.ts New-version notice for the desktop app
├── infrastructure/ Adapters that implement the ports
│ ├── vecline/, imagetracer/ Tracing engines; engine.ts wires them for the worker
│ ├── worker/ Web Worker and its client (cancellation, progress)
│ ├── browser/ Image loading, canvas, downloads, XML parser
│ ├── storage/, github/ localStorage, latest-release lookup
│ └── drawingExporter.ts PNG, components, DXF / EPS / PDF
├── ui/ React: App, components, hooks
│ ├── compositionRoot.ts The one place that builds the concrete services
│ └── services/ The injected services contract (AppServices)
└── i18n/ Translations: lightweight runtime, one file per language
tests/
├── architecture/ Dependency rule: dependencies point inwards
└── e2e/ Browser tests (Playwright)
electron/main.cjs Desktop shell: serves dist/ from a private app:// origin
Layers and testing. Dependencies point inwards: the UI and the adapters depend on use cases, use cases on the domain, and the domain on nothing. A test enforces it on every import (and keeps browser APIs out of the inner layers). The UI receives its services through dependency injection, so tests run it on fakes. Tests by layer: domain rules and use cases with fakes (unit), adapters against the real libraries (integration), components and the whole app on fake services (React Testing Library), and the critical flows in a real browser (Playwright). CI enforces coverage per layer and a cyclomatic complexity limit of 10.
How a vectorization flows
- The image is decoded into a
<canvas>. Anything above 4 MP is downscaled so tracing stays smooth. - The pixels are transferred (zero-copy) to the Web Worker, which preprocesses them, detects the real colours and traces them with vecline or ImageTracerJS while reporting progress.
- The traced outlines are refitted: each one is resampled, its real corners found (sharp turns, or two straight runs meeting at an angle), and every stretch between corners redrawn as one straight line, a circular arc or as few Bézier curves as possible. Where two lines meet, the corner moves to their exact intersection. A refit that would stray from the traced shape is discarded and that outline kept as traced.
- Shapes whose hole is completely filled by other shapes are drawn whole, with those shapes on top (no hairline cracks). For a transparent background, the background-colour region touching the image border is then removed, keeping the same colour inside the subject.
- If a new request arrives while one is running, the worker is terminated and a fresh one started: a real cancellation, the old job stops using the CPU.
- Once the SVG is on screen, it is rendered in the background and the worker computes its SSIM against the original.
- DXF, EPS and PDF are built from the current SVG when you open their export tab, so they share its clean geometry and include every edit.
Translations: src/i18n/locales/es.ts is the reference catalogue. TypeScript requires every other language to define exactly the same keys, and a test checks that every translation keeps the same {placeholders}. To add a language, copy en.ts, translate it and register it in src/i18n/core.ts.
- When DXF, EPS or PDF are exported from an edited SVG, gradients are flattened to the average colour of their stops and
transformattributes are not applied (the SVGs the app produces don't use them). - Very small images (under about 100 px) are traced less faithfully: thin features are only a few pixels wide. Use the largest version of a logo you have; the app says so when it loads one.
- SSIM is measured at up to 512 px on the longest side: a reliable fidelity indicator, not a full-resolution comparison.
React 19 · TypeScript · Vite · vecline · ImageTracerJS · Electron · Lucide · IBM Plex · Vitest · Oxlint
MIT © 2026 Juan Gestal








