Bug #70045 [Com]: imagewebp

From: Date: Sat, 11 Jul 2015 16:57:28 +0000
Subject: Bug #70045 [Com]: imagewebp
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-194331@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=70045&edit=1

 ID:                 70045
 Comment by:         stefan at devil dot se
 Reported by:        stefan at devil dot se
 Summary:            imagewebp
 Status:             Feedback
 Type:               Bug
 Package:            GD related
 Operating System:   Ubuntu 14.04.2
 PHP Version:        5.5.27
 Block user comment: N
 Private report:     N

 New Comment:

Sorry about that. Theese are the images I tested with.

https://www.dropbox.com/s/v6bzyg39j4r28dg/images.tar.gz?dl=1

example.webp
example2.webp
nature.webp (working)
nature2.webp
nature3.webp
nature4.webp (working)
nature5.webp
nature6.webp (working)


Previous Comments:
------------------------------------------------------------------------
[2015-07-11 12:05:51] cmb@php.net

Related to bug #69611.

Stefan, please post a link to at least one of the failing images.

------------------------------------------------------------------------
[2015-07-11 08:10:33] 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).


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=70045&edit=1


Thread (10 messages)

« previous php.bugs (#194331) next »