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

Avif compression not implemented in proxy mode

bugfest opened this issue · comments

Describe the bug
webp_server_go does not use AVIF compression when configured in proxy mode

To Reproduce

{
    "IMG_PATH": "http://my.backend.server",
    "EXHAUST_PATH": "",
    "ENABLE_AVIF": true,
    ...
}

Expected behavior
I expect to get AVIF compressed images when provide better compression than WebP

Screenshots and logs
n/a

Environment (please complete the following information):

  • OS: Linux, MacOS
  • version or branch: 0.6.0

Additional context
n/a

Opened PR #194 to fix/implement this

Yeah, that's indeed a problem, and thank you for your PR!

Hi @n0vad3v, I've updated my PR. Please review

PR merged, thanks for your contribution!