mirror of
https://github.com/visioncortex/vtracer.git
synced 2026-09-25 05:25:57 -07:00
Trim image codec features in the CLI and Python crates
vtracer only decodes input, but image's default features pulled a full AV1 encoder (ravif/rav1e) and OpenEXR into the CLI binary and the Python wheel. Restrict to decode-only input formats (png, jpeg, gif, bmp, webp, tiff, ico, pnm, tga, qoi). The release binary drops from ~3.23 MB to ~2.46 MB and builds faster; supported inputs are unchanged in practice (avif decode was never in image's defaults anyway).
This commit is contained in:
@@ -17,5 +17,8 @@ path = "src/main.rs"
|
||||
[dependencies]
|
||||
vtracer = { version = "1.0.0-alpha.1", path = "../vtracer" }
|
||||
visioncortex.workspace = true
|
||||
image = "0.25"
|
||||
# Decode-only: trimmed to real input formats (drops the AV1 encoder + OpenEXR).
|
||||
image = { version = "0.25", default-features = false, features = [
|
||||
"png", "jpeg", "gif", "bmp", "webp", "tiff", "ico", "pnm", "tga", "qoi",
|
||||
] }
|
||||
clap = { version = "4", features = ["derive"] }
|
||||
|
||||
@@ -19,5 +19,8 @@ crate-type = ["cdylib"]
|
||||
|
||||
[dependencies]
|
||||
vtracer = { version = "1.0.0-alpha.1", path = "../vtracer" }
|
||||
image = "0.25"
|
||||
# Decode-only: trimmed to real input formats (drops the AV1 encoder + OpenEXR).
|
||||
image = { version = "0.25", default-features = false, features = [
|
||||
"png", "jpeg", "gif", "bmp", "webp", "tiff", "ico", "pnm", "tga", "qoi",
|
||||
] }
|
||||
pyo3 = { version = "0.26", features = ["extension-module", "abi3-py38"] }
|
||||
|
||||
Reference in New Issue
Block a user