How to Use the WebP Image Format
What is the WebP image format?
WebP is an image format that supports both lossless and lossy compression. Developed by Google, it can reduce image file sizes by up to 34% compared with JPEG and PNG while retaining high quality — a straightforward way to speed up your pages.
Steps to use WebP in the Glend theme
Before your site can upload and display WebP images, the WebP MIME type must be registered on the server. Use one of the two methods below.
Method 1: via web.config
- Connect to the site's root directory with FTP software.
- Back up the
web.configfile. - Edit
web.configand add the following lines inside<staticContent></staticContent>:
xml
<remove fileExtension=".webp" />
<mimeMap fileExtension=".webp" mimeType="image/webp" />- Refresh the site. If it reports an error, restore
web.configfrom the backup made in step 2. - Log in as a superuser, go to Settings > Security, and add
webpto Allowable File Extensions.

Method 2: via IIS Manager
- Open IIS Manager and navigate to the site you want to manage.
- In Features View, double-click MIME Types.
- In the Actions pane, click Add.
- In the Add MIME Type dialog, type
webpin File name extension. - Type
image/webpin the MIME type box. - Log in as a superuser, go to Settings > Security, and add
webpto Allowable File Extensions.

Convert JPG/PNG to WebP
You can convert JPG/PNG images online via cloudconvert.com.
Once the configuration above is done, upload and use WebP images in the theme just like any other image format.
