php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79809 imagecreatefromwebp() does not support animated WebP
Submitted: 2020-07-08 13:37 UTC Modified: 2020-07-08 14:19 UTC
Votes:9
Avg. Score:4.4 ± 0.7
Reproduced:9 of 9 (100.0%)
Same Version:5 (55.6%)
Same OS:2 (22.2%)
From: vincent dot enjalbert at gmail dot com Assigned:
Status: Verified Package: GD related
PHP Version: 7.4.7 OS: Ubuntu Xenial
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
24 - 12 = ?
Subscribe to this entry?

 
 [2020-07-08 13:37 UTC] vincent dot enjalbert at gmail dot com
Description:
------------
The error "gd-webp cannot allocate temporary buffer " seems to occurs when using "imagecreatefromwebp" on an *animated* webp image. 

For example this one : https://media1.giphy.com/media/Lm5hxmmI6ucOQGfjKj/200w.webp


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-08 14:19 UTC] cmb@php.net
-Summary: gd-webp cannot allocate temporary buffer +Summary: imagecreatefromwebp() does not support animated WebP -Status: Open +Status: Verified -Type: Bug +Type: Documentation Problem
 [2020-07-08 14:19 UTC] cmb@php.net
Indeed, animated WebP (I think extended WebP in general) is not
(yet) supported.  You would need to demux the stream first.  This
has to be documented.

Besides the missing documentation, this is a libgd issue, so
please report upstream[1] (unless there is already a respective
issue).  Thanks.

[1] <https://github.com/libgd/libgd/issues>
 [2020-07-08 16:13 UTC] vincent dot enjalbert at gmail dot com
Blocked on : https://github.com/libgd/libgd/issues/648
 [2021-04-08 08:55 UTC] royaragon5946 at gmail dot com
Thanks for sharing such an amazing Blog.https://www.mycfavisit.website/
 [2021-05-20 07:04 UTC] webok74417 at mxcdd dot com
Yes this is a bug. Tried uploading animated webp and get this Symfony\Component\ErrorHandler\Error\FatalError gd-webp cannot allocate temporary buffer
 seems like its been like this since Dec 2019 atleast.
   For encryption https://freecrypt.org/
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Oct 24 19:03:33 2021 UTC