mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Fix fatal error when trying to resize animated WebP using GD
This commit is contained in:
parent
d519cd2516
commit
13e8445309
2 changed files with 18 additions and 1 deletions
|
|
@ -568,7 +568,7 @@ class FileHandler
|
|||
{
|
||||
$source = @imagecreatefrombmp($source_file);
|
||||
}
|
||||
elseif ($type === 'webp' && function_exists('imagecreatefromwebp'))
|
||||
elseif ($type === 'webp' && function_exists('imagecreatefromwebp') && !Rhymix\Framework\Image::isAnimatedWebP($source_file))
|
||||
{
|
||||
$source = @imagecreatefromwebp($source_file);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue