h2non / imaginary

Fast, simple, scalable, Docker-ready HTTP microservice for high-level image processing
https://fly.io/docs/app-guides/run-a-global-image-service/
MIT License
5.5k stars 455 forks source link

Get image size and format after pipeline manipulations #379

Open andrei-m-code opened 2 years ago

andrei-m-code commented 2 years ago

The problem that I have is, after doing anything with the image like resize or crop I'd like to have most basic image details in the response. The response itself is an image stream which is fine. Is there a way to add some headers to the response to know basic image data:

CarlSchwan commented 2 years ago

see https://github.com/h2non/imaginary/pull/382