Re: Call to undefined function imagewebp() webp php support

1,713 views
Skip to first unread message
Message has been deleted

Attila-Mihaly Balazs

unread,
Oct 9, 2018, 12:28:24 AM10/9/18
to Google App Engine
You *could* try doing "sudo apt-get install libwebp" (followed by restarting apache / nginx / php-fpm / whatever process is running your PHP code) but I wouldn't have great expectations.

As the instructions seems to indicate to get WebP support, PHP needs to be built from the ground up to support it.
Hence the indication to install the "libwebp-devel" package. "--with-webp-dir" should be added to the PHP configure script while it is being compiled (but in fact I would expect it to be automatically detected if the "libwebp-devel" package is installed).

However rebuilding PHP from source is not a trivial task so perhaps you should contact whoever build this image (Jetware?) and ask them about building a new version which includes webp support.

Attila
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

Mahmoud Sharif (Google Cloud Platform)

unread,
Oct 9, 2018, 8:22:17 AM10/9/18
to Google App Engine
Hello,

This group is dedicated to the Google App Engine group. Since you’ve already posted this thread on serverfault, you could wait for someone to answer you in that forum.

As an alternative, I also suggest that you ask your question on the dedicated WebP discussion forum group. [1]


On Monday, October 8, 2018 at 8:53:35 AM UTC-4, Riccardo Castagna wrote:

Hello to everybody,

someone may help me with this issue: https://serverfault.com/questions/934454/configuration-for-support-for-webp-images-on-jetware-optimized-lemp-stack-php

The vm istance is on compute engine but should be same if it were on app engine:

I have on Compute Engine the Jetware Optimized Lemp Stack Php 7 vm istance , loaded from the gcloud marketplace: Jetware Optimized Lemp Stack Php 7 jetware the problem is with the webp gd library of this repository : Fatal error: Uncaught Error: Call to undefined function imagewebp()

I wish to enable webp support: php.net I am not sure but I think I have to install the libraries from the gcloud console and I am not sure about the commands line to write:

Services control
Available services: cron exim memcached monit mysqld nginx orientation php-fpm redis
Start all services: start
Stop all services: stop
Service commands:
available|enabled|disabled|enable|disable|start|stop|status|restart servicename

Default server host

Main config: /jet/etc/nginx/nginx.conf
Additional configs: /jet/etc/nginx/conf.d
Document Root:
Ports/Sockets: 80
Main Error Log: /jet/log/nginx/error.log

Php Version: 7.1.6
Additional modules: PEAR PECL FPM
Path to interpreter: /jet/bin/php
Path to php.ini: /jet/etc/php/php.ini
Additional ini files: /jet/etc/php/php.d

command 1 should be: sudo apt-get install /jet/etc/php/php.d libwebp libwebp-devel (this is the correct command ..?)

after this I should add --with-webp-dir=DIR into php.ini file  ( correct ..?)

thanks for who reply

sincerely,
Riccardo 
Reply all
Reply to author
Forward
0 new messages