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.
https://docs.webp.sh
GNU General Public License v3.0
1.79k stars 173 forks source link

Add EXTRA_PARAMS_CROP_INTERESTING #328

Closed n0vad3v closed 5 months ago

n0vad3v commented 5 months ago

Related to: https://github.com/webp-sh/webp_server_go/issues/327

This PR will add a config parameter called EXTRA_PARAMS_CROP_INTERESTING in config.json, and WEBP_EXTRA_PARAMS_CROP_INTERESTING in environment variable.

Available options for EXTRA_PARAMS_CROP_INTERESTING are:

This will allow users to select what kind of crop interest when using EXTRA_PARAMS and both width and height are supplied.

More about Extra Parameters: https://docs.webp.sh/usage/extra-params/#extra-parameters More examples about different Interesting: https://blog.webp.se/vips-crop-en/

github-actions[bot] commented 5 months ago

ghcr.io/webp-sh/webp_server_go (debian 12.5)
============================================
Total: 0 (HIGH: 0, CRITICAL: 0)