feat: upgrade resvg to ^2.6.0 & refine mask-image#572
feat: upgrade resvg to ^2.6.0 & refine mask-image#572Jackie1210 wants to merge 2 commits intovercel:mainfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
Oops! vercel deploy failed. |
|
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. |
Is satori currently sensitive to wasm file size? I would consider releasing a smaller size |
Yes, we would like 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. |
|
any updates on this? 🚀 🙏🏼 |
|
@adamJLev We ended up needing to fork this project since vercel has set an arbitrary requirement for their version which is largely irrelevant for everyone else's use case. |
cool! I also ended up working around it by using the image scaler to get the image always as PNG for satori. |
|
Any update on the smaller size |

@resvg/resvg-jsto ^2.6.0mask-typetoalphato match the effect of browserresvgbehaviour, see Cannot render svg with image on2.4.1thx/resvg-js#257 (comment) (Need more work)CC @shuding @LuciNyan