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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: vincent dot enjalbert at gmail dot com
New email:
PHP Version: OS:

 

 [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: Fri Oct 22 13:03:32 2021 UTC