From 46f324b2c83101334c7f5f8dd87714f5e9706590 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 11 Oct 2026 11:18:32 +0000 Subject: [PATCH] release: 0.3.0 - traces closer to the artist's file in every condition, much closer on noisy input; faces completed behind their covers; proofs that gate the code Against v0.2.7 on the regression gate (scorer 4, 246 icons, all eight conditions, every gated axis better or level): Quality dE00 -12.5 / -12.1 / -15.2 % at 128 / 512 / 512 px opaque and -10.4 % on the resized quality-80 JPEG tier, with 25-36 % less distance from the artist's parameter count; Fast dE00 -9.1 to -11.6 %, and on the JPEG tier turning distance -66 % and parameters 7.29 -> 4.13 per artist parameter. Quality about 1.3x v0.2.7's time; Fast unchanged. Sub-pixel boundaries read from exact column sums; strokes on by default with merges; faces completed behind what covers them (certified by kernels generated from the Lean proofs); counters cut out of their glyph and one compound path per fill; nodes at a curve's extrema; --editability writes curves as drawing tools do; noisy input handled (JPEG halos and codec variants back to their inks, the codec band left alone, --restore auto as Quality's default where the model is built in, and acting only on damaged input). The gate gains a geometric match axis, a noisy JPEG tier, distance-from-the-artist axes for turning and parameters, a faster scorer with the same numbers, and a battery of human statistics. Verified: 997 Rust tests across fit, cli, trace, verified and core; the Lean library builds and the generated checkers regenerate without a diff; the combined 8-condition gate passes; contract hashes re-blessed on Linux; every version file at 0.3.0; third-party list current. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016AZWMqqHhRQ337N5EWhNC6 --- CHANGELOG.md | 7 +++++++ Cargo.lock | 28 +++++++++++++-------------- Cargo.toml | 20 +++++++++---------- bindings/openapi.json | 2 +- packages/java/pom.xml | 2 +- packages/npm/package-lock.json | 4 ++-- packages/npm/package.json | 2 +- packages/npm/src/version.generated.ts | 2 +- studio/core/Cargo.toml | 2 +- studio/package-lock.json | 4 ++-- studio/package.json | 2 +- studio/src-tauri/Cargo.lock | 28 ++++++++++++++++----------- studio/src-tauri/Cargo.toml | 2 +- studio/src-tauri/tauri.conf.json | 2 +- studio/wasm/Cargo.toml | 2 +- web/pkg-threads/package.json | 2 +- web/pkg/package.json | 2 +- 17 files changed, 63 insertions(+), 50 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2b47fb9..766b80af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,8 +7,15 @@ API in particular should be treated as unstable release to release). ## [Unreleased] +## [0.3.0] - 2026-10-11 + ### Changed +- **Traces sit closer to the artist's file in every gate condition, and much closer on noisy input.** Against v0.2.7 on the regression gate (scorer 4, 246 icons, all eight conditions, every gated axis better or level): + - Quality dE00 −12.5 % at 128 px, −12.1 % at 512 px, −15.2 % at 512 px opaque and −10.4 % on the resized quality-80 JPEG tier; geometric distance from the artist's edges −3.3 to −8.1 %; distance from the artist's parameter count −25 to −36 %; parameters per artist parameter 1.47 → 0.91, 1.72 → 1.12, 1.96 → 1.32 and 2.78 → 1.77. + - Fast dE00 −9.1 to −11.6 % in every condition; on the JPEG tier, distance from the artist's control-polygon turning −66 % and parameters 7.29 → 4.13 per artist parameter. + - Quality takes about 1.3× v0.2.7's time (stroke detection on by default, faces completed behind their covers), measured on a shared machine; Fast's time is unchanged. + - Of the gate's human statistics (how a file is drawn: joins, handles, grid, ties, layers; `bench/human_stats.py`), 25 of the 27 measured move closer to the artist's files in Quality at 512 px opaque and 23 on the JPEG tier, by more than 2 %; one and two move further. - **`--restore auto` is the default in Quality mode.** `Args::restore` is now an `Option`: unset, `Args::restore_mode` resolves it to `auto` in Quality mode when the build can restore (the network compiled in, or `--restore-command`) and to `off` in Fast and balanced and in a build with nothing to restore with, which then traces exactly as `--restore off` does; a given `--restore` always wins. On a clean input `auto` makes no probe without a sign of compression, so the default costs a clean PNG the ringing score alone (about 2.7 ms at 512 px); the gate's builds carry no network and its numbers do not move. - **Quality mode takes the codec's damage out of its labels on a lossy intake.** The MDL palette founded the codec's tints of an ink as inks of their own (on `openmoji/E056`, three tinted blacks beside black: 674 faces, 41 colours, 250 subpaths where the artist drew four colours), and the halos Fast's pass removes cut Quality's strokes into fragments. On an opaque lossy intake the despeckled labels now go through Fast's halo pass, in a strict form that holds every thin component to the strip rule and the segment test, through its soft merge of thin variants, and through a merge of codec variants of its own: an ink within 8 levels of a heavier one in luma-weighted YCbCr, and within the soft floor, is that ink (`fast/codec.rs`). `quality-web` against the build before (246 icons, the gate's distance axes): dE00 −6.83 %, `turning_gap` −36.57 %, `ratio_gap` −11.89 %, geom −3.73 %; openmoji's colours and subpaths per icon 10.6 and 38.0 → 5.7 and 12.8 (artists: 3.9 and 11.7). A clean intake is byte-identical, and Fast's output is unchanged. A restored image (`--restore`) does not take it: the restorer took the damage out, and on the restored path it read dE00 +0.24 %; `ColorOptions::restored` (set by the CLI's restorer pre-pass) says so. - **Counters are cut out of their glyph, and square rectangles share their paint's path (all modes).** On an opaque page, the counter of a letter O was a page-coloured element painted over a solid disc, and every rectangle was an element of its own (`material-icons/border_left`: seventeen `` where the artist has one path). Now: diff --git a/Cargo.lock b/Cargo.lock index 0a4e91c5..83203659 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3799,7 +3799,7 @@ checksum = "a257582fdcde896fd96463bf2d40eefea0580021c0712a0e2b028b60b47a837a" [[package]] name = "inkvec" -version = "0.2.7" +version = "0.3.0" dependencies = [ "image", "inkvec-cli", @@ -3815,7 +3815,7 @@ dependencies = [ [[package]] name = "inkvec-cli" -version = "0.2.7" +version = "0.3.0" dependencies = [ "inkvec-core", "inkvec-fit", @@ -3829,7 +3829,7 @@ dependencies = [ [[package]] name = "inkvec-core" -version = "0.2.7" +version = "0.3.0" dependencies = [ "robust", "web-time", @@ -3837,7 +3837,7 @@ dependencies = [ [[package]] name = "inkvec-fab" -version = "0.2.7" +version = "0.3.0" dependencies = [ "i_overlay", "inkvec-core", @@ -3850,7 +3850,7 @@ dependencies = [ [[package]] name = "inkvec-ffi" -version = "0.2.7" +version = "0.3.0" dependencies = [ "inkvec", "serde_json", @@ -3859,7 +3859,7 @@ dependencies = [ [[package]] name = "inkvec-fit" -version = "0.2.7" +version = "0.3.0" dependencies = [ "inkvec-core", "kurbo", @@ -3868,7 +3868,7 @@ dependencies = [ [[package]] name = "inkvec-py" -version = "0.2.7" +version = "0.3.0" dependencies = [ "inkvec", "pyo3", @@ -3876,7 +3876,7 @@ dependencies = [ [[package]] name = "inkvec-restore" -version = "0.2.7" +version = "0.3.0" dependencies = [ "burn", "burn-onnx", @@ -3890,7 +3890,7 @@ dependencies = [ [[package]] name = "inkvec-server" -version = "0.2.7" +version = "0.3.0" dependencies = [ "axum", "form_urlencoded", @@ -3908,7 +3908,7 @@ dependencies = [ [[package]] name = "inkvec-sr" -version = "0.2.7" +version = "0.3.0" dependencies = [ "image", "inkvec-core", @@ -3918,7 +3918,7 @@ dependencies = [ [[package]] name = "inkvec-svgmin" -version = "0.2.7" +version = "0.3.0" dependencies = [ "inkvec-core", "inkvec-fit", @@ -3929,7 +3929,7 @@ dependencies = [ [[package]] name = "inkvec-trace" -version = "0.2.7" +version = "0.3.0" dependencies = [ "image", "inkvec-core", @@ -3941,11 +3941,11 @@ dependencies = [ [[package]] name = "inkvec-verified" -version = "0.2.7" +version = "0.3.0" [[package]] name = "inkvec-wasm" -version = "0.2.7" +version = "0.3.0" dependencies = [ "console_error_panic_hook", "inkvec", diff --git a/Cargo.toml b/Cargo.toml index 65bee971..c7ac7889 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,7 +22,7 @@ members = [ exclude = ["studio/src-tauri"] [workspace.package] -version = "0.2.7" +version = "0.3.0" edition = "2021" license = "Apache-2.0" rust-version = "1.88" @@ -43,15 +43,15 @@ too_many_lines = "warn" [workspace.dependencies] # Internal crates carry a version as well as a path: crates.io refuses a published crate # whose dependency is a bare path. -inkvec-core = { path = "crates/inkvec-core", version = "0.2.7" } -inkvec-verified = { path = "crates/inkvec-verified", version = "0.2.7" } -inkvec-fit = { path = "crates/inkvec-fit", version = "0.2.7" } -inkvec-trace = { path = "crates/inkvec-trace", version = "0.2.7" } -inkvec-sr = { path = "crates/inkvec-sr", version = "0.2.7" } -inkvec-restore = { path = "crates/inkvec-restore", version = "0.2.7" } -inkvec-svgmin = { path = "crates/inkvec-svgmin", version = "0.2.7" } -inkvec-cli = { path = "crates/inkvec-cli", version = "0.2.7" } -inkvec = { path = "crates/inkvec", version = "0.2.7" } +inkvec-core = { path = "crates/inkvec-core", version = "0.3.0" } +inkvec-verified = { path = "crates/inkvec-verified", version = "0.3.0" } +inkvec-fit = { path = "crates/inkvec-fit", version = "0.3.0" } +inkvec-trace = { path = "crates/inkvec-trace", version = "0.3.0" } +inkvec-sr = { path = "crates/inkvec-sr", version = "0.3.0" } +inkvec-restore = { path = "crates/inkvec-restore", version = "0.3.0" } +inkvec-svgmin = { path = "crates/inkvec-svgmin", version = "0.3.0" } +inkvec-cli = { path = "crates/inkvec-cli", version = "0.3.0" } +inkvec = { path = "crates/inkvec", version = "0.3.0" } robust = "1.1" rayon = "1.10" kurbo = "0.13" diff --git a/bindings/openapi.json b/bindings/openapi.json index 8214d8a0..d7512238 100644 --- a/bindings/openapi.json +++ b/bindings/openapi.json @@ -2,7 +2,7 @@ "openapi": "3.1.0", "info": { "title": "Inkvec HTTP service", - "version": "0.2.7", + "version": "0.3.0", "description": "Raster-to-SVG tracing over HTTP. Every option is inkvec::Options end to end: this document, and the query parameters on POST /trace below, are generated from the same JSON Schema the Rust facade writes (bindings/options.schema.json) -- nothing about an option is restated here." }, "paths": { diff --git a/packages/java/pom.xml b/packages/java/pom.xml index 74a4f1e9..ccfece07 100644 --- a/packages/java/pom.xml +++ b/packages/java/pom.xml @@ -20,7 +20,7 @@ --> com.logolabs inkvec - 0.2.7 + 0.3.0 jar inkvec diff --git a/packages/npm/package-lock.json b/packages/npm/package-lock.json index 44844118..5023732b 100644 --- a/packages/npm/package-lock.json +++ b/packages/npm/package-lock.json @@ -1,12 +1,12 @@ { "name": "@logolabs/inkvec", - "version": "0.2.7", + "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@logolabs/inkvec", - "version": "0.2.7", + "version": "0.3.0", "license": "Apache-2.0", "devDependencies": { "typescript": "^5.9.3" diff --git a/packages/npm/package.json b/packages/npm/package.json index f2d403c8..3a5ed989 100644 --- a/packages/npm/package.json +++ b/packages/npm/package.json @@ -1,6 +1,6 @@ { "name": "@logolabs/inkvec", - "version": "0.2.7", + "version": "0.3.0", "description": "Raster to SVG tracing by minimum description length: PNG, JPEG, WebP or raw RGBA in, an SVG string out. WebAssembly, for browsers and Node.js.", "license": "Apache-2.0", "author": "LogoLabs", diff --git a/packages/npm/src/version.generated.ts b/packages/npm/src/version.generated.ts index 8282086a..92bbd245 100644 --- a/packages/npm/src/version.generated.ts +++ b/packages/npm/src/version.generated.ts @@ -1,2 +1,2 @@ // GENERATED by packages/npm/build.mjs from the workspace Cargo.toml. Do not edit. -export const VERSION = "0.2.7"; +export const VERSION = "0.3.0"; diff --git a/studio/core/Cargo.toml b/studio/core/Cargo.toml index f11d443d..ec3b971b 100644 --- a/studio/core/Cargo.toml +++ b/studio/core/Cargo.toml @@ -11,7 +11,7 @@ [package] name = "inkvec-studio-core" description = "Inkvec Studio's shared core: tracing, measuring, palettes, export and fabrication, for the desktop app and its browser build." -version = "0.2.7" +version = "0.3.0" edition = "2021" rust-version = "1.88" license = "Apache-2.0" diff --git a/studio/package-lock.json b/studio/package-lock.json index ed340e29..e512174b 100644 --- a/studio/package-lock.json +++ b/studio/package-lock.json @@ -1,12 +1,12 @@ { "name": "inkvec-studio", - "version": "0.2.7", + "version": "0.3.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "inkvec-studio", - "version": "0.2.7", + "version": "0.3.0", "license": "Apache-2.0", "dependencies": { "@tauri-apps/api": "^2.9.0", diff --git a/studio/package.json b/studio/package.json index 1308134a..370da781 100644 --- a/studio/package.json +++ b/studio/package.json @@ -1,7 +1,7 @@ { "name": "inkvec-studio", "private": true, - "version": "0.2.7", + "version": "0.3.0", "type": "module", "description": "Inkvec Studio: turn a raster logo into an SVG, exactly. The desktop app (Tauri) and its browser build, Inkvec Studio Lite.", "license": "Apache-2.0", diff --git a/studio/src-tauri/Cargo.lock b/studio/src-tauri/Cargo.lock index cff5c470..cf9fbcc2 100644 --- a/studio/src-tauri/Cargo.lock +++ b/studio/src-tauri/Cargo.lock @@ -2095,7 +2095,7 @@ dependencies = [ [[package]] name = "inkvec-cli" -version = "0.2.7" +version = "0.3.0" dependencies = [ "inkvec-core", "inkvec-fit", @@ -2103,12 +2103,13 @@ dependencies = [ "inkvec-sr", "inkvec-svgmin", "inkvec-trace", + "inkvec-verified", "rayon", ] [[package]] name = "inkvec-core" -version = "0.2.7" +version = "0.3.0" dependencies = [ "robust", "web-time", @@ -2116,7 +2117,7 @@ dependencies = [ [[package]] name = "inkvec-fab" -version = "0.2.7" +version = "0.3.0" dependencies = [ "i_overlay", "inkvec-core", @@ -2128,7 +2129,7 @@ dependencies = [ [[package]] name = "inkvec-fit" -version = "0.2.7" +version = "0.3.0" dependencies = [ "inkvec-core", "kurbo", @@ -2137,7 +2138,7 @@ dependencies = [ [[package]] name = "inkvec-restore" -version = "0.2.7" +version = "0.3.0" dependencies = [ "image", "inkvec-sr", @@ -2148,7 +2149,7 @@ dependencies = [ [[package]] name = "inkvec-sr" -version = "0.2.7" +version = "0.3.0" dependencies = [ "image", "inkvec-core", @@ -2158,7 +2159,7 @@ dependencies = [ [[package]] name = "inkvec-studio" -version = "0.2.7" +version = "0.3.0" dependencies = [ "dirs", "image", @@ -2182,7 +2183,7 @@ dependencies = [ [[package]] name = "inkvec-studio-core" -version = "0.2.7" +version = "0.3.0" dependencies = [ "image", "inkvec-cli", @@ -2202,7 +2203,7 @@ dependencies = [ [[package]] name = "inkvec-studio-wasm" -version = "0.2.7" +version = "0.3.0" dependencies = [ "console_error_panic_hook", "inkvec-fab", @@ -2218,7 +2219,7 @@ dependencies = [ [[package]] name = "inkvec-svgmin" -version = "0.2.7" +version = "0.3.0" dependencies = [ "inkvec-core", "inkvec-fit", @@ -2229,15 +2230,20 @@ dependencies = [ [[package]] name = "inkvec-trace" -version = "0.2.7" +version = "0.3.0" dependencies = [ "image", "inkvec-core", "inkvec-fit", + "inkvec-verified", "moxcms", "rayon", ] +[[package]] +name = "inkvec-verified" +version = "0.3.0" + [[package]] name = "ipnet" version = "2.12.2" diff --git a/studio/src-tauri/Cargo.toml b/studio/src-tauri/Cargo.toml index 74debc38..5a955406 100644 --- a/studio/src-tauri/Cargo.toml +++ b/studio/src-tauri/Cargo.toml @@ -15,7 +15,7 @@ members = ["../core", "../wasm"] [package] name = "inkvec-studio" description = "Inkvec Studio: turn a raster logo into an SVG, exactly, and minimise SVGs you already have." -version = "0.2.7" +version = "0.3.0" edition = "2021" rust-version = "1.88" license = "Apache-2.0" diff --git a/studio/src-tauri/tauri.conf.json b/studio/src-tauri/tauri.conf.json index 915fc76f..abb4e168 100644 --- a/studio/src-tauri/tauri.conf.json +++ b/studio/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Inkvec Studio", - "version": "0.2.7", + "version": "0.3.0", "identifier": "org.logolabs.inkvec.studio", "build": { "beforeDevCommand": "npm run dev", diff --git a/studio/wasm/Cargo.toml b/studio/wasm/Cargo.toml index cd25b6f2..62cca8f6 100644 --- a/studio/wasm/Cargo.toml +++ b/studio/wasm/Cargo.toml @@ -9,7 +9,7 @@ [package] name = "inkvec-studio-wasm" description = "Inkvec Studio Lite: the Studio's core in the browser, as WebAssembly." -version = "0.2.7" +version = "0.3.0" edition = "2021" rust-version = "1.88" license = "Apache-2.0" diff --git a/web/pkg-threads/package.json b/web/pkg-threads/package.json index 31faa56e..04562611 100644 --- a/web/pkg-threads/package.json +++ b/web/pkg-threads/package.json @@ -5,7 +5,7 @@ "LogoLabs" ], "description": "Inkvec in the browser: the tracer compiled to WebAssembly", - "version": "0.2.7", + "version": "0.3.0", "license": "Apache-2.0", "repository": { "type": "git", diff --git a/web/pkg/package.json b/web/pkg/package.json index 31faa56e..04562611 100644 --- a/web/pkg/package.json +++ b/web/pkg/package.json @@ -5,7 +5,7 @@ "LogoLabs" ], "description": "Inkvec in the browser: the tracer compiled to WebAssembly", - "version": "0.2.7", + "version": "0.3.0", "license": "Apache-2.0", "repository": { "type": "git",