-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hello there! 👋
First, thanks for the great work on this library! I was taking imgproxy for a spin this week and had a feeling that Elixir/ Phoenix would be a great match for this use-case (without needing all the extra infra), and then I found this hidden¹ gem on Hex 😄.
I have a couple of questions for the maintainers:
-
Are you guys planning/ willing to support passing local files to
url? I think it would be great to avoid the roundtrip, meaning you could stream the file from a local directory and make it available. I would suggest mimicking imgproxy's API and allowing passing the local path aslocal://my_image.jpg. -
Have you considered the possibility of caching files (either locally or remotely) so we can avoid reprocessing the images? (I guess that allowing this sort of thing would be much easier locally, but still, I'm kinda curious)
Additionally, I think it would be great to provide some sort of abstraction to make it a bit easier to consume this, the imgproxy library for Elixir takes care of signing the URL for you, for instance:
"https://placekitten.com/200/300"
|> Imgproxy.new()
|> Imgproxy.crop(100, 100)
|> Imgproxy.set_extension("jpg")
|> to_string()¹ I think you might want to add a few more keywords to make this discoverable on Hex, this is too good to be hidden like this haha ❤