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
Comment #2
MixologicWe 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:
Current config:
Comment #3
MixologicI've added webp to both the 7.1 and 7.1.x containers, and have deployed it to production.
Comment #4
Mixologic