Bug #70045 [NEW]: imagewebp

From: Date: Sat, 11 Jul 2015 08:10:35 +0000
Subject: Bug #70045 [NEW]: imagewebp
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194326@lists.php.net to get a copy of this message
From: stefan at devil dot se Operating system: Ubuntu 14.04.2 PHP version: 5.5.27 Package: GD related Bug Type: Bug Bug description:imagewebp 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). -- Edit bug report at https://bugs.php.net/bug.php?id=70045&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70045&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70045&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70045&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70045&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70045&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70045&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70045&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70045&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70045&r=support Expected behavior: https://bugs.php.net/fix.php?id=70045&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70045&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70045&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70045&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70045&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70045&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70045&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70045&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70045&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70045&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70045&r=mysqlcfg

« previous php.bugs (#194326) next »