-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Use IPX as high performance, secure and easy-to-use image optimizer. #2
Comments
Sounds interesting! One consideration unpacking images opens up a resource exhaustion risk. It could be good to have defaults that mitigate these risks. |
I worry a bit about using a tool that wraps other tools. If the proposed solution is already very simple to integrate into a server, then what is missing? |
Briefly looking at it again, ipx seems to be mostly designed to be used as req/res middleware. However that doesn't work in our case, even if we introduce So we'd have to add something like |
sharp allows many manipulations, and ipx seems to allow that too. So that’s a bit more complex. |
Yeah in which case I would say building it inside camomile with an opt-in option still isn't a bad idea, especially since we're tightly coupled to formats we support. If we decide we want it, and we determine the code is non-trivial (too big for an example), then it's better to figure it out with security in mind once instead of pushing the risk to implementers. |
What is the The Indeed, if it is non-trivial, and we can make it secure, optionally with ipx, then we could expose an implementation of that hook in the future? The hook would be |
Yes that sounds good. |
Hi! This was marked as ready to be worked on! Note that while this is ready to be worked on, nothing is said about priority: it may take a while for this to be solved. Is this something you can and want to work on? Team: please use the |
Initial checklist
Problem
One thing that could be expected/wanted from an image proxy is also optimizing images and/or changing the image format.
Current solutions
This was already on our minds but building it yourself from scratch is a lot of work.
Proposed solutions
unjs is a great ecosystem focussed on universal tooling, much like unified's philosophy. They have an image optimizer which can be easily integrated into Node.js servers.
https://github.com/unjs/ipx
The text was updated successfully, but these errors were encountered: