Skip to content

About

raster-to-vector conversion for the desktop, terminal, and node.js

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

97 Commits

Folders and files

Repository files navigation

openvector logo

openvector

raster-to-vector conversion for the desktop, terminal, and node.js.

release 0.1.5 total release downloads npm weekly downloads source ci status MIT license


openvector turns png, jpeg, bmp, gif, and tiff images into editable vectors. one rust engine powers the native desktop app, cli, and node-api library. it runs independently and does not require vector magic or a network service.

build | cli and node api | changelog | verification | release runbook

what it does

  • automatic tracing, manual palettes, segmentation editing, and background removal.
  • svg, pdf, eps, ai, dxf, and emf export, plus rasterized png, jpeg, bmp, and tiff output.
  • batch conversion, saved advanced profiles, and recent basic settings.
  • a native gpui desktop interface, with the same engine available to scripts.

download

download the desktop app from github releases. each package includes its third-party notices.

v0.1.5

platform package run
macos, apple silicon dmg open the disk image and drag OpenVector to Applications
macos, intel dmg open the disk image and drag OpenVector to Applications
linux, amd64 tar.gz extract, then run ./openvector-0.1.5-linux-amd64/openvector-gui
linux, arm64 tar.gz extract, then run ./openvector-0.1.5-linux-arm64/openvector-gui
windows 10 and 11, x64 installer or portable zip run the installer, or extract the whole zip and open openvector-gui.exe

macos packages are developer id-signed, notarized, and stapled.

windows executables are unsigned; the portable package needs no installation but still saves preferences in the normal per-user location.

linux packages target ubuntu 24.04 with glibc 2.39 and were tested with X11. the required desktop libraries are in the build guide. wayland remains unverified. the release includes matching source and SHA-256 checksums.

these checks do not establish exact parity or coverage of every input. v0.1.2 improves text-field accessibility, but full screen-reader support remains unverified. see the release coverage limits and verification and known limits.

install the cli and node library

the cli and node library are published as openvector.

the npm package includes native binaries for linux amd64 and arm64, windows x64, and macos apple silicon and intel. use node.js 22.19 or later. windows arm64 machines need x64 node.js; native arm64 windows and alpine/musl packages are not included. linux packages are built and tested on ubuntu 24.04.

npm install openvector
npx openvector vectorize logo.png --output logo.svg

for a global cli installation, run npm install -g openvector, then openvector --help.

the desktop app is a separate download. npm installation does not need rust or download additional native binaries.

build from source

use node.js 22.19 or later, npm, rust with its rust-docs component, git, and a c compiler/linker. native packaging also needs platform-specific toolchain notices. the build guide covers supported targets, cross-compilation, linux libraries, and windows node-api linking.

git clone https://github.com/Microck/openvector.git
cd openvector
npm ci
npm run build
node bin/openvector.mjs --help

npm run build produces the cli and node addon for the selected platform. it does not build the desktop app.

cargo run --manifest-path rust/Cargo.toml --locked -p openvector-gui -- logo.png

the desktop app needs a graphical session. use OPENVECTOR_PREFERENCES to select a separate preferences file when testing.

convert an image

node bin/openvector.mjs vectorize logo.png --output logo.svg
node bin/openvector.mjs vectorize logo.png --output logo.pdf
mkdir vectors
node bin/openvector.mjs batch first.png second.jpg --format svg --output-dir vectors

the output suffix selects the format. existing outputs require an explicit replacement option. processing does not rewrite the source image.

use it from node.js

after installing the npm package or building the native addon:

import { readFileSync } from 'node:fs';
import { CoreSession } from 'openvector';

const document = new CoreSession().createDocument();
document.setSource(readFileSync('logo.png'), 'logo.png');
document.runAutomatic({ extension: '.png' });
// saveVector creates a new file and never overwrites an existing path.
const saved = document.saveVector('logo.svg', { layout: 'cutouts' });
if (saved.status !== 0 || saved.error) {
  throw new Error(saved.error?.message ?? `Export failed: ${saved.status}`);
}

calls are synchronous. the api guide covers progress, cancellation, batches, editing, snapshots, and profile storage. the package never downloads a binary or falls back to the javascript reference implementation on import.

development

npm run test:smoke

that command runs small reference checks and independently authored tests included in the default checkout. it is also the test scope of GitHub Actions source CI, not a claim that the full native or desktop suites pass. see development and test fixtures for the broader checks and their private fixture corpus.

directory contents
rust/crates/openvector shared tracing engine
rust/crates/openvector-gui native desktop app
rust/crates/openvector-cli cli
rust/crates/openvector-node, npm/ node-api binding and public declarations
src/, gui/ development reference implementation, models, and HTTP test host
test/, docs/ tests, fixtures, usage guides, and behavioral contracts

license

application code is mit licensed. third-party code, fonts, and icons retain their own licenses. packages must include their generated notices and editable source where required. qt-derived code has lgpl requirements; review the distribution notes before a public binary release.

openvector is an independent project and is not affiliated with vector magic.

About

raster-to-vector conversion for the desktop, terminal, and node.js

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages