WebP Image Format
What is the WebP image format?
WebP is an image format that supports both lossless and lossy compression. Developed by Google, WebP can reduce image file sizes by up to 34% compared to JPEG and PNG while retaining high quality.
Steps to use WebP in the Flux theme
To allow your site to upload and display WebP images, you need to register the WebP MIME type on the server first. This can be done using one of the two methods below.
Method 1: Configure via web.config
- Connect to your site's root directory via FTP.
- Back up the
web.configfile. - Edit
web.configand add the following code inside the<staticContent></staticContent>node:
<remove fileExtension=".webp" />
<mimeMap fileExtension=".webp" mimeType="image/webp" />- Refresh the site. If the site reports an error, restore
web.configusing the backup from step 2. - Log in to the site as a super user, go to Settings > Security, and add
webpto Allowable File Extensions.

Method 2: Configure 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, enter
webpin the File name extension field. - Enter
image/webpin the MIME type field. - Log in to the site as a super user, go to Settings > Security, and add
webpto Allowable File Extensions.

Convert JPG/PNG to WebP
You can convert JPG/PNG images to WebP format online via cloudconvert.com.
Once the above configuration is complete, you can upload and use WebP images in the theme just like any other image format.
Flux theme's automatic WebP conversion
In addition to manual conversion, the Flux theme also supports automatic conversion to WebP on upload. Enable it by checking Enable convert to webp under Global Settings > Media Library. See Global Settings — Media Library for details.
