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