php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #70046 WebP support broken
Submitted: 2015-07-11 14:47 UTC Modified: 2015-07-23 14:15 UTC
From: cmb@php.net Assigned: ab (profile)
Status: Closed Package: GD related
PHP Version: 7.0.0beta1 OS: Windows
Private report: No CVE-ID: None
 [2015-07-11 14:47 UTC] cmb@php.net
Description:
------------
WebP support is currently broken on Windows for PHP 7. The
available deps[1] ship libwebp (instead of libvpx which is shipped
for PHP 5), but it seems the bundled GD library is not yet ready
for libwebp. At least I have not been able to find respective
config options (neither on Windows nor Linux).

The main problem is that this affects the delivered Windows
binaries.

The supplied test script should rather use gd_info(), but it seems
that the 'WebP Support' key is missing, even if WebP support is
available. I'll investage on this issue.

[1] <http://windows.php.net/downloads/php-sdk/>


Test script:
---------------
var_dump(extension_loaded('gd'));
var_dump(function_exists('imagewebp'));


Expected result:
----------------
bool(true)
bool(true)


Actual result:
--------------
bool(true)
bool(false)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-07-13 20:02 UTC] ab@php.net
-Status: Open +Status: Verified
 [2015-07-13 20:02 UTC] ab@php.net
Yeah, it should now rely on the libwebp. In php5 it relies on libvpx. The corresponding parts supporting libwebp need to be ported from the mainstream.

Thanks.
 [2015-07-13 23:17 UTC] cmb@php.net
Well, if only libwebp is supposed to be supported by PHP 7, we'd
better offer a working solution pretty soon. Even though a full
port is likely over my head,
<https://github.com/cmb69/php-src/tree/libwebp> might be helpful
for a start.
 [2015-07-23 14:15 UTC] cmb@php.net
-Status: Verified +Status: Closed -Assigned To: +Assigned To: ab
 [2015-07-23 14:15 UTC] cmb@php.net
The fix for this bug has been committed.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed Jul 06 17:05:44 2022 UTC