feat(render): implement full image rendering for screenshots

This commit is contained in:
SGavrl committed 2026-07-02 19:42:41 +00:00
1 parent 6d33783ddf
commit bed6d6f619
3 files changed
+145 -18

No files matched your search

+5 -3
View File
@@ -8,15 +8,17 @@ description = "Optional scoped render layer for Obscura: layout (taffy) and, wit
[features]
default = []
# Rasterize the laid-out tree to a pixmap (tiny-skia) with text (ab_glyph).
# Rasterize the laid-out tree to a pixmap (tiny-skia) with text (ab_glyph) and images.
# Off by default; the layout core (getBoundingClientRect etc.) works without it.
paint = ["dep:tiny-skia", "dep:ab_glyph"]
paint = ["dep:tiny-skia", "dep:ab_glyph", "dep:image", "dep:ureq", "dep:base64"]
[dependencies]
taffy = { workspace = true }
obscura-dom = { workspace = true }
tiny-skia = { workspace = true, optional = true }
ab_glyph = { workspace = true, optional = true }
image = { version = "0.24", default-features = false, features = ["jpeg", "png", "webp"], optional = true }
ureq = { version = "2.9", default-features = false, features = ["tls"], optional = true }
base64 = { workspace = true, optional = true }
[lib]
path = "src/lib.rs"