Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor wasm-vips improvements #24

Open
wants to merge 2 commits into
base: edge
Choose a base branch
from
Open

Conversation

kleisauke
Copy link

Hi @thasophearak,

Thanks for using wasm-vips, I think you're the first to use it in combination with Cloudflare Workers!

I noticed your Tweet, and took a quick look at how wasm-vips was used. This PR improves a few things:

BTW, were there any modifications needed to run this on Cloudflare Workers? I remembered that there was an execution time and a file size limit (see e.g. kleisauke/wasm-vips#2), but perhaps that's no longer an issue.

Resulting byte array is no longer backed by WebAssembly memory.
@thasophearak
Copy link
Member

@kleisauke Thanks a lot for the PR 🙇‍♂️ !

BTW, were there any modifications needed to run this on Cloudflare Workers?

Ahh, I should have mention it clearly, it's actually running on browser. Only after it's processed, then it is uploaded to R2, while image metadata store in KV.

The worker part is just running Moul as a whole. (Prev. moul is just a CLI self-contained binary)

@kleisauke
Copy link
Author

Ah, I didn't see vips.wasm being loaded in the network tab of my browser, so I assumed it was running in Cloudflare Workers. Thanks for the clarification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants