satori
satori copied to clipboard
feat: upgrade resvg to ^2.6.0 & refine mask-image
- upgrade
@resvg/resvg-js
to ^2.6.0 - set
mask-type
toalpha
to match the effect of browser - Close #545
- Do not render svg with image in html due to
resvg
behaviour, see https://github.com/yisibl/resvg-js/issues/257#issuecomment-1732280950 (Need more work)
CC @shuding @LuciNyan
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
satori-playground | ❌ Failed (Inspect) | Nov 6, 2023 3:26pm |
Oops! vercel deploy failed.
Huge thanks to @yisibl and @zimond for their hard work on @resvg/resvg-js
!
You're welcome, my pleasure.
any update?
I might try a custom build of Resvg.js as its latest WASM build is 1.1MB larger than old versions. My guess is that it includes font loading / WASI related features that Satori doesn't actually need.
I might try a custom build of Resvg.js as its latest WASM build is 1.1MB larger than old versions. My guess is that it includes font loading / WASI related features that Satori doesn't actually need.
Is satori currently sensitive to wasm file size? I would consider releasing a smaller size @resvg/resvg-wasm
package if needed.
Is satori currently sensitive to wasm file size?
Yes, we would like satori
to continue working with the 1 MB gzip size limit for Hobby customers using Edge Functions.
https://vercel.com/docs/functions/limitations
Would love to see this merged, we've got a panic at the moment that is fixed in resvg upstream but not in the version bundled with satori.