Articles in this section

WebP support in PHP packages provided by Plesk

Plesk for Windows kb: how-to Plesk for Linux ABT: Group B

Applicable to:

  • Plesk for Linux
  • Plesk for Windows

Question

Do Plesk PHP packages have WebP support?

Answer

The GD library shipped with Plesk PHP 7.2 and higher supports WebP starting from Plesk Obsidian 18.0.27.

Update Plesk to the latest version to get this feature.

 

For older Plesk version, use the instructions from the following Plesk Forum page to compile GD module with WebP support:

Was this article helpful?

Comments

1 comment
Date Votes
  • The error message appears before 10web.io

    WebP Format Not Enabled: Your server is preventing us from configuring WebP conversion. Please follow these instructions to enable it manually.

    Serve WebP Via Server

    To configure for server side serving, please copy the code bellow to nginx.conf and then reload Nginx.

    map $http_accept $webp_suffix {
        default "";
        "~*webp" ".webp";
    }
    location ~* ^.+\.(png|jpe?g)$ {
        add_header Vary Accept;
        try_files $uri$webp_suffix $uri =404;
    }
    0

Please sign in to leave a comment.