mirror of
https://github.com/Intervention/image.git
synced 2025-08-21 13:11:18 +02:00
Reformat code
This commit is contained in:
@@ -25,8 +25,13 @@ class GifEncoder extends AbstractEncoder implements EncoderInterface
|
||||
|
||||
protected function encodeAnimated($image): EncodedImage
|
||||
{
|
||||
$builder = GifBuilder::canvas($image->getWidth(), $image->getHeight(), $image->getLoops());
|
||||
foreach ($image as $key => $frame) {
|
||||
$builder = GifBuilder::canvas(
|
||||
$image->getWidth(),
|
||||
$image->getHeight(),
|
||||
$image->getLoops()
|
||||
);
|
||||
|
||||
foreach ($image as $frame) {
|
||||
$source = $this->encode($frame->toImage());
|
||||
$builder->addFrame($source, $frame->getDelay());
|
||||
}
|
||||
|
Reference in New Issue
Block a user