Replies: 1 comment 1 reply
-
Yes I thought about this too, that's actually one of the reasons for #17. I'm unsure about a few things though:
Sure javascript is not as slow as it was and nodejs has improved quite a lot, but transforming images is quite slow.
Maybe not as important, because directives are just pure functions and the core library would be treeshakeable but I serverless has a lot of different requirements than traditional servers so something to keep in mind.
I've discovered imgproxy while researching for this and they're quite concerned with security since transforming images with unknown contents opens you up to a whole bunch of security issues, a lot of those would be a least somewhat adressed by using wasm, but it still something to keep in mind. So it's not a all a no, it's a great idea but there are things to consider 👍 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I know, I know! This library is for ahead of time image compression. But please hear me out 🙏
I think that if the
wasm-vips
is integrated into thecore
we might create adapters for different serverless providers such as Cloudflare Workers so anyone can set up an on demand image compression if ahead of time compression is not enough for them.This library is extremely useful for small to medium SSG websites. But is useless for big SSR e-commerces and platforms. It'd be awesome if this library and its directives could be used freely in any environment.
Beta Was this translation helpful? Give feedback.
All reactions