<p>If you're not seeing WebP as a format option, your server doesn't support webp. As per the <a href="https://craftcms.com/docs/3.x/requirements.html" rel="noreferrer">server requirements for Craft</a>, you need either of the PHP extensions for images, GD or ImageMagick. Both of those can be compiled / installed with or without WebP (though a standard installation should include WebP by default by now).</p>
<p>If you're working locally or on a server you control, make sure to install/compile ImageMagick with WebP support. If you're using managed hosting, contact your server provider to do it for you.</p>

CC BY-SA 4.0
2021-12-16T03:25:08.420Z
Thank you. Though I am having a hard time installing ImageMagick on my local but it worked on GD2.
Jeriel Jacinto
CC BY-SA 4.0
2021-12-06T08:57:14.290Z
2021-12-06T08:57:14.290Z
MoritzLost
<p>our plugin will handle this among other things. Check it out here.
<a href="https://plugins.craftcms.com/one-plugin-fields" rel="nofollow noreferrer">https://plugins.craftcms.com/one-plugin-fields</a></p>
<p>Effectively it'll transform the image, render it per target resolution and optimise. All while giving you the option for fallback images. So safari or edge wont break your site.</p>

CC BY-SA 4.0
2023-04-04T09:55:41.053Z
This doesn't answer the question. WebP still needs to be available and configured on the server side.
Michael Thomas
CC BY-SA 4.0
2021-12-06T09:45:07.903Z
2021-12-06T09:45:07.903Z
Mark Sands
<p>I would like to ask how to convert or transform image format to <strong>webp</strong>.</p>
<p>Based on Craft CMS Documentation 3.x, you can set the image format to <strong>jpg</strong>, <strong>png</strong>, <strong>gif</strong> and <strong>webp</strong> but there is no <strong>webp</strong> available in my CP.</p>
<p><a href="https://craftcms.com/docs/3.x/image-transforms.html#defining-transforms-from-the-control-panel" rel="nofollow noreferrer">https://craftcms.com/docs/3.x/image-transforms.html#defining-transforms-from-the-control-panel</a></p>
<p>I would like to ask how can I convert it to <strong>webp</strong>, should I need install driver in my server?</p>
<p>Thank you.</p>

<image-transforms>
image transform to webp image format
# image transform to webp image format

(Asked by: username_0 on 2021-12-06)

I would like to ask how to convert or transform image format to **webp**.

Based on Craft CMS Documentation 3.x, you can set the image format to **jpg**, **png**, **gif** and **webp** but there is no **webp** available in my CP.

<https://craftcms.com/docs/3.x/image-transforms.html#defining-transforms-from-the-control-panel>

I would like to ask how can I convert it to **webp**, should I need install driver in my server?

Thank you.

**Tags:** image-transforms


---

## 2 answers

### Answer by username_1 on 2021-12-06. Score: 5 | Accepted answer

If you're not seeing WebP as a format option, your server doesn't support webp. As per the [server requirements for Craft](https://craftcms.com/docs/3.x/requirements.html), you need either of the PHP extensions for images, GD or ImageMagick. Both of those can be compiled / installed with or without WebP (though a standard installation should include WebP by default by now).

If you're working locally or on a server you control, make sure to install/compile ImageMagick with WebP support. If you're using managed hosting, contact your server provider to do it for you.

> **Comments:**
> **username_0**: Thank you. Though I am having a hard time installing ImageMagick on my local but it worked on GD2.  

---

### Answer by username_2 on 2021-12-06. Score: -4

our plugin will handle this among other things. Check it out here.
<https://plugins.craftcms.com/one-plugin-fields>

Effectively it'll transform the image, render it per target resolution and optimise. All while giving you the option for fallback images. So safari or edge wont break your site.

> **Comments:**
> **username_3**: This doesn't answer the question. WebP still needs to be available and configured on the server side.  

---

