mirror of
https://github.com/Intervention/image.git
synced 2025-08-26 07:14:31 +02:00
Fixes
This commit is contained in:
@@ -22,7 +22,7 @@ class GifEncoder extends AbstractEncoder implements EncoderInterface
|
|||||||
|
|
||||||
protected function encodeAnimated($image): string
|
protected function encodeAnimated($image): string
|
||||||
{
|
{
|
||||||
$builder = GifBuilder::canvas($image->width(), $image->height(), $image->getLoops());
|
$builder = GifBuilder::canvas($image->width(), $image->height(), $image->loops());
|
||||||
foreach ($image as $key => $frame) {
|
foreach ($image as $key => $frame) {
|
||||||
$source = $this->encode($frame->toImage());
|
$source = $this->encode($frame->toImage());
|
||||||
$builder->addFrame($source, $frame->getDelay());
|
$builder->addFrame($source, $frame->getDelay());
|
||||||
|
@@ -19,7 +19,7 @@ class GifEncoder extends AbstractEncoder implements EncoderInterface
|
|||||||
$gif->addImage($frame->getCore());
|
$gif->addImage($frame->getCore());
|
||||||
}
|
}
|
||||||
|
|
||||||
$gif->setImageIterations($image->getLoops());
|
$gif->setImageIterations($image->loops());
|
||||||
$gif->setFormat($format);
|
$gif->setFormat($format);
|
||||||
$gif->setImageFormat($format);
|
$gif->setImageFormat($format);
|
||||||
$gif->setCompression($compression);
|
$gif->setCompression($compression);
|
||||||
|
Reference in New Issue
Block a user