Animated webp errors

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dimyy
    Active Community Member
    • Jun 2018
    • 569

    Animated webp errors

    Espo: 8.1.3

    [2024-02-05 08:42:46] WARNING: E_WARNING: imagecreatefromwebp(): "data/upload/65ae43fce41f2bf5a" is not a valid WEBP file {"code":2,"message":"imagecreatefromwebp(): "data/upload/65ae43fce41f2bf5a" is not a valid WEBP file","file":"/home/work/public_html/application/Espo/EntryPoints/Image.php","line":310}
    [2024-02-05 08:42:46] ERROR: Uncaught Exception TypeError: "imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, bool given" at /home/work/public_html/application/Espo/EntryPoints/Image.php line 312 {"exception":"[object] (TypeError(code: 0): imagecopyresampled(): Argument #2 ($src_image) must be of type GdImage, bool given at /home/work/public_html/application/Espo/EntryPoints/Image.php:312)"}​

    gd-webp lib don't support animated webp (https://github.com/Intervention/image/issues/1196)

    it might make sense to escape the code or check for an error

    Animated webp example:
  • yuri
    Member
    • Mar 2014
    • 8547

    #2
    I added in master. But it might only work with the newer PHP versions. On PHP v8.1 the exception is not thrown.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    Working...