Webp format is not supported by PHP installation.

Limited Time Offer!

For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!

Enroll Now

Error:

production.ERROR: Webp format is not supported by PHP installation. {"userId":1,"exception":"[object] (Intervention\\Image\\Exception\\NotSupportedException(code: 0): Webp format is not supported by PHP installation. at /opt/lampp/htdocs/lucknoworbit.com/vendor/intervention/image/src/Intervention/Image/Gd/Encoder.php:68)
[stacktrace]
#0 /opt/lampp/htdocs/lucknoworbit.com/vendor/intervention/image/src/Intervention/Image/AbstractEncoder.php(185): Intervention\\Image\\Gd\\Encoder->processWebp()
#1 /opt/lampp/htdocs/lucknoworbit.com/vendor/intervention/image/src/Intervention/Image/AbstractDriver.php(79): Intervention\\Image\\AbstractEncoder->process(Object(Intervention\\Image\\Image), 'webp', 90)
#2 /opt/lampp/htdocs/lucknoworbit.com/vendor/intervention/image/src/Intervention/Image/Image.php(121): Intervention\\Image\\AbstractDriver->encode(Object(Intervention\\Image\\Image), 'webp', 90)
#3 /opt/lampp/htdocs/lucknoworbit.com/eventmie-pro/src/Http/Controllers/Voyager/SettingsController.php(145): Intervention\\Image\\Image->encode('webp', 90)
#4 /opt/lampp/htdocs/lucknoworbit.com/eventmie-pro/src/Http/Controllers/Voyager/SettingsController.php(83): Classiebit\\Eventmie\\Http\\Controllers\\Voyager\\SettingsController->uploadImage(Object(Illuminate\\Http\\UploadedFile), 'local')
#5 /opt/lampp/htdocs/lucknoworbit.com/vendor/laravel/framework/src/Illuminate/Routing/Controller.php(54): Classiebit\\Eventmie\\Http\\Controllers\\Voyager\\SettingsController->update(Object(Illuminate\\Http\\Request))
#6 /opt/lampp/htdocs/lucknoworbit.com/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php(44): Illuminate\\Routing\\Controller->callAction('update', Array)

Solution:

Webp format is not supported by PHP installation

It means your PHP GD library is installed, but WebP support is NOT enabled inside GD.

You are using:

/opt/lampp/htdocs/lucknoworbit.com

So this is XAMPP on Linux (LAMPP).


Step 1 — Check if WebP Support is Enabled

Run this command:

/opt/lampp/bin/php -i | grep -i webp

If you see:

WebP Support => enabled

Then it’s fine.

If nothing appears ❌ → WebP is not compiled in GD.


Step 2 — Check GD Details

Run:

/opt/lampp/bin/php -i | grep -i gd

Or create a phpinfo file:

<?php phpinfo(); ?>

Then open:

http://localhost/phpinfo.php

Look for:

GD Support => enabled
WebP Support => enabled (or disabled)

If WebP Support = disabled → this is your problem.


FIX OPTION 1 (Recommended) — Install WebP for GD

Since you’re using XAMPP (LAMPP), WebP support usually requires system libraries.

Install required libraries:

sudo apt update
sudo apt install libwebp-dev
sudo apt install libgd-dev

Then reinstall PHP GD extension

If you’re using system PHP:

sudo apt install php-gd

If using LAMPP bundled PHP → it may not have WebP compiled.

👉 In that case, easiest solution is:


FIX OPTION 2 (BEST & EASIEST) — Use Imagick Instead of GD

Imagick supports WebP much better.


Step 1: Install ImageMagick

sudo apt install imagemagick
sudo apt install php-imagick

Step 2: Restart Apache

sudo /opt/lampp/lampp restart

Step 3: Modify Intervention Image

In your Laravel config:

config/image.php

Change:

'driver' => 'imagick',

Instead of:

'driver' => 'gd',

Step 4: Test

/opt/lampp/bin/php -r "print_r(gd_info());"

OR test WebP save again.


Why This Happens

GD must be compiled with:

--with-webp

XAMPP often ships without WebP compiled in GD.

So GD exists ✔
But WebP support inside GD ❌


Best Practice for Production

For production servers:

✔ Use Imagick
✔ Avoid GD for modern formats
✔ Use WebP or AVIF

Imagick is more stable for:

  • WebP
  • Large images
  • Memory efficiency
  • Better compression

Quickest Solution For You

Since you are already using:

$manager = new ImageManager(["driver" => "imagick"]);

Just make sure:

php -m | grep imagick

If not found:

sudo apt install php-imagick
sudo /opt/lampp/lampp restart

Senior Software Development Engineer at Cotocus

Related Posts

The Indian Expat’s Handbook: Decoding Visa Requirements and Moving Abroad

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Heading…

Read More

Navigating DevOps Training in China: Practical Skills, Infrastructure Automation, and Industry Certifications

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now When…

Read More

DevSecOps vs Traditional Security Reviews: A Comparison

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Introduction…

Read More

The Complete Guide to Product Security and DevSecOps Alignment

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Introduction…

Read More

Crafting Digital Resilience: How AI, Cloud Foundations, and DevOps Drive Enterprise Growth

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now The…

Read More

Modernizing Infrastructure: How Unified Cloud, DevOps, and SRE Practices Drive Business Value

Limited Time Offer! For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly. Master DevOps, SRE, DevSecOps Skills! Enroll Now Introduction…

Read More
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments