SVG files served over HTTP (image/svg+xml) or detected by byte sniffing are now rasterized to RGBA8 pixels at decode time using resvg/usvg, producing the same DecodedImage that raster formats produce. Everything downstream (layout, display list, rasterizer) works unchanged. Includes dimension limits (8192px max, 64M pixels) to prevent SVG bomb attacks, content-type validation against actual bytes, and NaN/Infinity guards on SVG dimensions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
15 lines
237 B
TOML
15 lines
237 B
TOML
[package]
|
|
name = "image"
|
|
version = "0.1.0"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
shared = { path = "../shared" }
|
|
anyhow.workspace = true
|
|
image_decoder.workspace = true
|
|
resvg.workspace = true
|
|
tracing.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|