]> git.mxchange.org Git - friendica.git/commitdiff
Fix unsupported animated webp parsing
authorPhilipp <admin@philipp.info>
Sat, 21 May 2022 16:51:03 +0000 (18:51 +0200)
committerPhilipp <admin@philipp.info>
Sat, 21 May 2022 16:51:03 +0000 (18:51 +0200)
src/Object/Image.php

index 2d62aea46c03815b36ad3757eaec56a5d84e071e..16206963b47c8b3664a36faa6f27b9df675456cc 100644 (file)
@@ -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]);
                        }