Mr poppins
Mr poppins

Reputation: 53

How to enable support for module in PHP.ini

The function imagecreatefromwebp() does not exist in my php(GD) library. imagecreatefromjpeg() and other functions work fine. I need to enable something specific to imagecreatefromwebp().

GD2 is already installed on Debian with some of the modules installed.

How do I enable support for imagecreatefromwebp()?

  1. Can I enable it just by adding a directive or something in php.ini?
  2. Or Do I need to install the additional Module? How do I do it individually?
  3. OR Do I need to re install php again with all necessary modules?

EDIT: This link seems helpful->http://php.net/manual/en/image.installation.php couldn't understand it completely, it seems specifically for the (new)installation

phpinfo():GD enter image description here

Upvotes: 0

Views: 2508

Answers (1)

Taras Budzyn
Taras Budzyn

Reputation: 356

I was researched in the web and the answer is you should reinstall php again with --with-vpx-dir=DIR option.

Please see this question, there described probably the same problem as you have

How to compile php to enable webp support?

Upvotes: 1

Related Questions