Working for #2340699-39: Let GDToolkit support WEBP image format, I found out that the PHP 7.1 instance running on testbots most likely was compiled without WebP support.

The test in that issue shows that

    if (PHP_VERSION_ID >= 70100) {
      $this->assertTrue(function_exists('imagewebp'));
    }
 

is failing on 7.1.

Is it possible to enable WebP support?

Note - I do not know if WebP support was enabled in earlier versions (it has been available since PHP version 5.5), but just wanted to share that the libraries and compile options changed in 7.0: --with-webp-dir=DIR should be used in place of --with-vpx-dir, i.e. support for libvpx has been removed in favor of libwebp. This caused me some headache to setup my dev environment as this was not reflected in brew formulae.

See
http://stackoverflow.com/questions/22786201/how-to-compile-php-to-enable...
http://php.net/manual/en/image.installation.php

Comments

mondrake created an issue. See original summary.

Mixologic’s picture

We havent had either vpx or webp available on the testbots so far.. Also I commented on that other issue with some questions, but heres some data about the current state of the php 7 bots.

Old config:

Configure Command =>  './configure'  '--with-config-file-path=/opt/phpenv/versions/7.0snapshot/etc'
'--with-config-file-scan-dir=/opt/phpenv/versions/7.0snapshot/etc/conf.d'
'--prefix=/opt/phpenv/versions/7.0snapshot'
'--libexecdir=/opt/phpenv/versions/7.0snapshot/libexec'
'--without-pear'
'--with-gd'
'--enable-sockets'
'--with-jpeg-dir=/usr'
'--with-png-dir=/usr'
'--enable-exif'
'--enable-zip'
'--with-zlib'
'--with-zlib-dir=/usr'
'--with-kerberos'
'--with-openssl'
'--with-mcrypt=/usr'
'--enable-soap'
'--enable-xmlreader'
'--with-xsl'
'--enable-ftp'
'--enable-cgi'
'--with-curl=/usr'
'--with-tidy'
'--with-xmlrpc'
'--enable-sysvsem'
'--enable-sysvshm'
'--enable-shmop'
'--with-mysql=mysqlnd'
'--with-mysqli=mysqlnd'
'--with-pdo-mysql=mysqlnd'
'--with-pdo-sqlite'
'--enable-pcntl'
'--with-readline'
'--enable-mbstring'
'--disable-debug'
'--enable-bcmath'
'--with-gettext=shared'
'--with-freetype-dir=/usr/lib/x86_64-linux-gnu'
'--with-pdo-pgsql'
'--with-apxs2=/usr/bin/apxs2'
'--enable-intl'
'--enable-wddx'
'--with-libdir=lib64

Current config:

Configure Command =>  './configure'  '--with-config-file-path=/usr/local/etc/php'
'--with-config-file-scan-dir=/usr/local/etc/php/conf.d'
'--enable-ftp'
'--enable-mbstring'
'--enable-mysqlnd'
'--with-curl'
'--with-libedit'
'--with-zlib'
'--with-kerberos'
'--with-openssl'
'--with-mysql=mysqlnd'
'--with-mysqli=mysqlnd'
'--with-pdo-mysql=mysqlnd'
'--with-pdo-sqlite'
'--with-pdo-pgsql'
'--with-readline'
'--with-png-dir'
'--with-freetype-dir'
'--with-zlib-dir'
'--with-jpeg-dir'
'--with-mcrypt'
'--with-xsl'
'--with-tidy'
'--with-xmlrpc'
'--with-gettext=shared'
'--with-gd'
'--with-pear'
'--enable-sockets'
'--enable-exif'
'--enable-zip'
'--enable-soap'
'--enable-sysvsem'
'--enable-cgi'
'--enable-sysvshm'
'--enable-shmop'
'--enable-pcntl'
'--enable-bcmath'
'--enable-xmlreader'
'--enable-intl'
'--enable-wddx'
'--enable-opcache'
'--with-apxs2'
'LDFLAGS='
Mixologic’s picture

Status: Active » Fixed

I've added webp to both the 7.1 and 7.1.x containers, and have deployed it to production.

Mixologic’s picture

Project: DrupalCI: Test Runner » DrupalCI: Environments
Component: Testrunner Codebase » PHP Containers

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.