mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:00:16 +00:00
Fix unsupported animated webp parsing
This commit is contained in:
parent
783b05cbb1
commit
218fc0c20d
1 changed files with 1 additions and 1 deletions
|
@ -173,7 +173,7 @@ class Image
|
|||
} catch (\Throwable $error) {
|
||||
/** @see https://github.com/php/doc-en/commit/d09a881a8e9059d11e756ee59d75bf404d6941ed */
|
||||
if (strstr($error->getMessage(), "gd-webp cannot allocate temporary buffer")) {
|
||||
DI::logger()->notice('Image is probably a kind of unsupported, animated GID', ['error' => $error]);
|
||||
DI::logger()->notice('Image is probably animated and therefore unsupported', ['error' => $error]);
|
||||
} else {
|
||||
DI::logger()->warning('Unexpected throwable.', ['error' => $error]);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue