h2non / imaginary

Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing

Home Page:https://fly.io/docs/app-guides/run-a-global-image-service/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Processing images from other container

jlvdh opened this issue · comments

Is it possible to process images that are located in another container within the same docker-compose file?

I've tried something like this:

http://localhost:9001/crop?width=500&height=200&gravity=smart&url=http://storage-service:3020/storage/o/public/avatars/9101d3ad-818b-4d48-8a6e-8e67e6242093/peacock-mantis-shrimp-shutterstock.jpg

But I'm getting

{ "message": "Unvalid image URL", "status": 400 }

Seems like any urls that are not parsing, like the docker url is not accepted here:

u, err := parseURL(req)

This is solved: For anyone running into this issue, I had a newline character hidden in the url which caused the error 🦆