mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-26 10:47:11 -06:00
PNG is written by an in-code chunk writer with the resolution in pHYs and optional Adam7 interlacing (JPEG stores the resolution in JFIF). document.export takes ppi (72/150/300/other, wins over scale), background (transparent, white, black or a colour) and antiAlias (none, art, type: text snapped to whole pixels); Export for Screens rows take them too (plus one top-level antiAlias, and a row's ppi names its @Nx suffix), and so does object.rasterize. Hard edges stay hard in every offscreen pass (groups, masks, filters), whatever the thread count. RenderOptions.anti_alias and render::encode::RasterExportOptions; PNG/JPEG/WebP Options dialog (pngOptions/jpgOptions/webpOptions) after File > Export As PNG. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
989 B
TOML
32 lines
989 B
TOML
[package]
|
|
name = "vectorcraft-render"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
description = "VectorCraft renderer: document to pixels (vello_cpu backend)"
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[dependencies]
|
|
vectorcraft-geom = { workspace = true }
|
|
vectorcraft-color = { workspace = true }
|
|
vectorcraft-doc = { workspace = true }
|
|
vectorcraft-text = { workspace = true }
|
|
vectorcraft-effects = { workspace = true }
|
|
vectorcraft-brush = { workspace = true }
|
|
vello_cpu = { workspace = true }
|
|
# Filter types (Gaussian blur, drop shadow) are not re-exported by vello_cpu 0.2.
|
|
vello_common = { version = "0.2", default-features = false }
|
|
image = { workspace = true }
|
|
flate2 = { workspace = true }
|
|
log = { workspace = true }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
vello_cpu = { workspace = true, features = ["multithreading"] }
|
|
|
|
[dev-dependencies]
|
|
vectorcraft-testkit = { workspace = true }
|
|
proptest = { workspace = true }
|
|
serde_json = { workspace = true }
|