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

Can we allow palette param in resize API? #378

Open vaibsharma opened 2 years ago

vaibsharma commented 2 years ago

I saw that in bimg we have palette expose for pngsave_buffer but from imaginary we are not passing that param from API. Is there plan to fix it? https://github.com/h2non/imaginary/blob/master/options.go#L11

But in bimg we do have a param to allow that palette param https://github.com/h2non/bimg/blob/master/options.go#L228

h2non commented 2 years ago

Happy to merge a PR with the feature, it is easy to implement 👍

vaibsharma commented 2 years ago

@h2non Done :)