From 93ca996407e6603083aaa977f60f1aa7a9d14dd3 Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sat, 21 Sep 2024 09:33:48 +0200 Subject: [PATCH] Handle file pointer directly in GifEncoder::class --- src/Drivers/Gd/Encoders/GifEncoder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Drivers/Gd/Encoders/GifEncoder.php b/src/Drivers/Gd/Encoders/GifEncoder.php index b47a6c21..72d79260 100644 --- a/src/Drivers/Gd/Encoders/GifEncoder.php +++ b/src/Drivers/Gd/Encoders/GifEncoder.php @@ -47,7 +47,7 @@ protected function encodeAnimated(ImageInterface $image): EncodedImage foreach ($image as $frame) { $builder->addFrame( - source: (string) $this->encode($frame->toImage($image->driver())), + source: $this->encode($frame->toImage($image->driver()))->toFilePointer(), delay: $frame->delay(), interlaced: $this->interlaced );