Announcement
Collapse
No announcement yet.
Animated webp errors
Collapse
X
-
I added in master. But it might only work with the newer PHP versions. On PHP v8.1 the exception is not thrown.
- Likes 2
-
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:
Tags: None
- Likes 1
Leave a comment: