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

Two Wheels, Infinite Roads: A Riderโ€™s Guide to Touring Dubai and Abu Dhabi

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

Mastering Secretsless CI/CD for Pipeline Security

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

Navigating Europe on Temporary Wheels: The Shift Toward Vehicle Sharing and Digital Fleet Tools

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 1….

Read More

The Complete Guide to Secure Deployment Rollbacks and Application Recovery

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 Imagine…

Read More

Finding Your Ride: Navigating Car and Motorcycle Rentals Across Africa

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

Securing Artifact Repositories in DevSecOps: Best Practices

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 Imagine…

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