webp-sh / webp_server_go

Go version of WebP Server. A tool that will serve your JPG/PNG/BMP/SVGs as WebP/AVIF format with compression, on-the-fly.

Home Page:https://docs.webp.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cropping mode environment variable

BabyDino opened this issue · comments

Is your feature request related to a problem? Please describe.
According to this article, I understand the cropping solution based on vips is InterestingAll. I was using a custom solution with nginx and image_filter, and this crops automatically using the equivalent of InterestingCentre.

Describe the solution you'd like
Support for InterestingCentre, maybe with a extra param like crop=center? Or maybe via an environment variable ENABLE_EXTRA_PARAMS_CROP_MODE?

Describe alternatives you've considered

Additional context
Thanks for this wonderful piece of software and thank you for your consideration!

Nice idea, I've created a PR #328 for this.

That's blazing fast guys, amazing and thanks for your consideration!

@BabyDino PR is merged and we've released 0.11.2, please have a try to see if its working as intended.
Docs:

Looks good! Fantastic work, thanks.