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

Feature Request: Support for Self Hosted image manipulation server (Thumbor, Imgproxy, Imaginary) #37

Open
imsus opened this issue Mar 13, 2023 · 12 comments

Comments

@imsus
Copy link

imsus commented Mar 13, 2023

Please support the open source alternatives

Thumbor

Website: https://www.thumbor.org/
Github Repo: https://github.com/thumbor/thumbor

Imgproxy

Website: https://imgproxy.net/
Github Repo: https://github.com/imgproxy/imgproxy

Imaginary

Github Repo: https://github.com/h2non/imaginary

@imsus imsus changed the title Feature Request: Support for Open Source image manipulation server (Thumbor, Imgproxy, Imaginary) Feature Request: Support for Self Hosted image manipulation server (Thumbor, Imgproxy, Imaginary) Mar 13, 2023
@ascorbic
Copy link
Owner

Yeah, ipx too. What I want to do is introduce a more concept of a fallback transformer, which only handles transforms if it doesn't match a CDN transformer. I can take a lot of the logic out of the Vercel transformer. That would make it a lot easier to implement these.

@lilith
Copy link

lilith commented Mar 14, 2023

I'd also like to suggest my self-hosted OSS image servers Imageflow and ImageResizer; both have the same querystring command syntax.

https://docs.imageflow.io/querystring/introduction.html
https://github.com/riapi/riapi
https://github.com/imazen/imageflow
https://github.com/imazen/imageflow-dotnet-server
https://github.com/imazen/resizer

@rajeshg
Copy link

rajeshg commented Mar 23, 2023

+1 for imaginary.

Here is their API
https://github.com/h2non/imaginary#http-api

@kdevan
Copy link

kdevan commented Apr 4, 2023

I'm thinking about writing a transformer for Imaginary. I've looked at some of the other transformers to get a feel for it. I wonder if you have any advice for how this process might look, since it will be using a custom domain and then going from unpic -> unpic-img which is my goal here.

@ascorbic
Copy link
Owner

The trouble with most of these is that they use signed URLs, which we can't support

@sahidrahman404
Copy link

The trouble with most of these is that they use signed URLs, which we can't support

can we expose a function to fetch signed URLs from the backend

@ascorbic
Copy link
Owner

You'd not be able to do that if you ever wanted to use this in the client, e.g. if you're using unpic-img

@ascorbic
Copy link
Owner

ascorbic commented Oct 29, 2023

I have implemented support for ipx. If anyone would like to add support for other self-hosted servers then I would suggest using that as an example

@anthonyholmes
Copy link

Would you be open to adding support for imgproxy with unsigned URLs? It seems like setting the allowed sources can act as security measure and unpic could add the disclaimer it only works with unsigned URLs
https://docs.imgproxy.net/configuration/options#IMGPROXY_ALLOWED_SOURCES

@ascorbic
Copy link
Owner

Absolutely! Please do. I'd need an example host for the tests though.

@anthonyholmes
Copy link

I can send you a couple links from my server unless you think that's a terrible idea

@ascorbic
Copy link
Owner

That should be fine. You can add that as part of the PR if that's ok

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

No branches or pull requests

7 participants