|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-07-11 08:10 UTC] stefan at devil dot se
Description:
------------
I have tested the code below with 8 random jpg images from Google and the images generated are either working as expected or just plain white. All files work with webp command line.
PHP 5.5.9-1ubuntu4.11 (cli) (built: Jul 2 2015 15:23:08)
Array
(
[GD Version] => 2.1.1-dev
[FreeType Support] => 1
[FreeType Linkage] => with freetype
[T1Lib Support] =>
[GIF Read Support] => 1
[GIF Create Support] => 1
[JPEG Support] => 1
[PNG Support] => 1
[WBMP Support] => 1
[XPM Support] => 1
[XBM Support] => 1
[JIS-mapped Japanese Font Support] =>
)
Test script:
---------------
$path = dirname(__FILE__) .'/images/example.jpg';
$im = imagecreatefromjpeg($path);
$webp = imagewebp($im, dirname(__FILE__) .'/images/example.webp');
imagedestroy($im);
var_dump($webp);
Expected result:
----------------
A generated webp image file that displays correctly in Chrome 43.0.2357.132 (64-bit).
Actual result:
--------------
A generated webp image file that seems to have the correct size but is blank in Chrome 43.0.2357.132 (64-bit).
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 09 17:00:01 2025 UTC |
i have the same issue with php7-rasp-pi PHP 7.0.22-2+0~20170804100528.5+jessie~1.gbpdea206 (cli) (built: Aug 10 2017 14:34:58) ( NTS ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2017 Zend Technologies with Zend OPcache v7.0.22-2+0~20170804100528.5+jessie~1.gbpdea206, Copyright (c) 1999-2017, by Zend Technologies what is the solution? thankd