Dynamic image rendering with Workers

I'd like to use Cloudflare Workers to dynamically create and serve images, but all of the rendering packages I've found have native dependencies or otherwise don't run on the Workers platform. Tom Sherman's approach (https://tom-sherman.com/blog/dynamic-og-image-cloudflare-workers) is close to what I'd like but I'd rather not use the browser rendering API if possible
2 Replies
kian
kian3mo ago
There's Satori which renders React with WASM iirc, I'm not aware of anything else
LeftyLlama
LeftyLlama3mo ago
I managed to get it working with node-pureimage, an implementation of the Canvas API with no native dependencies. It did require a few tweak though, documented here: https://github.com/joshmarinacci/node-pureimage/issues/138
GitHub
work in cloudflare workers · Issue #138 · joshmarinacci/node-pureim...
Hi, I'm working on a image placeholder that run in cloudflare workers. I made it works with 2 modifications. One in index.js: replace import {PNG} from "pngjs"; by import {PNG} from &...
Want results from more Discord servers?
Add your server