Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EXTRA_PARAMS_CROP_INTERESTING #328

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Add EXTRA_PARAMS_CROP_INTERESTING #328

merged 1 commit into from
Apr 19, 2024

Conversation

n0vad3v
Copy link
Member

@n0vad3v n0vad3v commented Apr 17, 2024

Related to: #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:

  • InterestingNone
  • InterestingCentre
  • InterestingEntropy
  • InterestingAttention
  • InterestingLow
  • InterestingHigh
  • InterestingAll

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/

Copy link


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


@n0vad3v n0vad3v marked this pull request as ready for review April 17, 2024 12:48
@n0vad3v n0vad3v merged commit c7bebfc into master Apr 19, 2024
6 checks passed
@n0vad3v n0vad3v deleted the add-crop-interestring branch April 19, 2024 02:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants