# Compile WebP Support for GD

**URL:** <https://community.localwp.com/t/compile-webp-support-for-gd/20352>\
**Category:** Completed Feature Requests\
**Tags:** php-extensions\
**Created:** [June 19, 2020, 6:47pm UTC](https://community.localwp.com/t/compile-webp-support-for-gd/20352 "2020-06-19T18:47:29Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![inetjared](https://avatars.discourse-cdn.com/v4/letter/i/a587f6/32.png) [@inetjared](https://community.localwp.com/u/inetjared)\
**Post date:** [June 19, 2020, 6:47pm UTC](https://community.localwp.com/t/compile-webp-support-for-gd/20352/1 "2020-06-19T18:47:30Z")

</div>

We are using GD to generate WebP images in our projects.

I just setup my first project using Local, and when logging into wp-admin I get the following error:

CRITICAL ERROR: PHP GD Was not compiled with WebP Support! You must manually recompile the GD.so module with WebP support

Does anyone have an idea of how to get WebP support working with GD and PHP in Local?

Thank you!

Jared

---

<div class="post-metadata">

**Author:** ![Superfein](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/superfein/32/5295_2.png) [@Superfein](https://community.localwp.com/u/Superfein)\
**Post date:** [August 31, 2020, 1:24pm UTC](https://community.localwp.com/t/compile-webp-support-for-gd/20352/2 "2020-08-31T13:24:41Z")

</div>

I would like this feature available as well in Local Lightning.

---

<div class="post-metadata">

**Author:** ![rmpel](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/rmpel/32/4529_2.png) [@rmpel](https://community.localwp.com/u/rmpel)\
**Post date:** [July 19, 2021, 9:07am UTC](https://community.localwp.com/t/compile-webp-support-for-gd/20352/3 "2021-07-19T09:07:01Z")

</div>

I too would like to see webp support, but also consistent PHP configurations over all versions;

8.0.0: GD support; yes, webp in GD: no, ImageMagick support: no.  
7.4.1: GD support; yes, webp in GD: no, ImageMagick support: yes, webp in ImageMagick: no  
7.3.5: GD support; yes, webp in GD: no, ImageMagick support: no.  
5.6.39: completely broken.

I would like to request that all PHP versions are configured with webp support in GD and a working ImageMagick with webp support as WordPress 5.8 will be released tomorrow with native webp support; we need to be able to develop for it.

Or; as an alternative; instructions on how to recompile a localwp PHP binary 😉

---

<div class="post-metadata">

**Author:** ![caraya](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/caraya/32/10679_2.png) [@caraya](https://community.localwp.com/u/caraya)\
**Post date:** [May 19, 2022, 9:12pm UTC](https://community.localwp.com/t/compile-webp-support-for-gd/20352/4 "2022-05-19T21:12:47Z")

</div>

Has there been any traction on getting this to work? It’s been almost two years since the ticket was opened and it doesn’t appear that there’s been any movement on it.

If the team doesn’t plan on compiling GD and ImageMagick, can you at least provide a way to use a locally compiled (outside the Local Application) version to make sure things work?

---

<div class="post-metadata">

**Author:** ![benjaminDorey](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/benjamindorey/32/15280_2.png) [@benjaminDorey](https://community.localwp.com/u/benjaminDorey)\
**Post date:** [May 31, 2022, 3:11pm UTC](https://community.localwp.com/t/compile-webp-support-for-gd/20352/5 "2022-05-31T15:11:56Z")

</div>

Need this !! 🙂

---

<div class="post-metadata">

**Author:** ![austinwendt](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/austinwendt/32/13912_2.png) [@austinwendt](https://community.localwp.com/u/austinwendt)\
**Post date:** [September 22, 2022, 4:25pm UTC](https://community.localwp.com/t/compile-webp-support-for-gd/20352/6 "2022-09-22T16:25:59Z")

</div>

Hi all - WebP is fully supported with the latest Local release, v6.4.3! We’ll make sure this is included in any future changes to our PHP versions going forward. Thanks for your patience while we worked on upgrades to all of our PHP versions!

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [September 24, 2022, 4:26am UTC](https://community.localwp.com/t/compile-webp-support-for-gd/20352/7 "2022-09-24T04:26:25Z")

</div>

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.
