mirror of
https://github.com/Intervention/image.git
synced 2025-08-21 13:11:18 +02:00
Normalized delay
This commit is contained in:
@@ -47,7 +47,7 @@ class BinaryImageDecoder extends AbstractDecoder implements DecoderInterface
|
|||||||
$splitter = GifSplitter::create($gif)->split();
|
$splitter = GifSplitter::create($gif)->split();
|
||||||
$delays = $splitter->getDelays();
|
$delays = $splitter->getDelays();
|
||||||
foreach ($splitter->coalesceToResources() as $key => $gd) {
|
foreach ($splitter->coalesceToResources() as $key => $gd) {
|
||||||
$image->addFrame((new Frame($gd))->setDelay($delays[$key]));
|
$image->addFrame((new Frame($gd))->setDelay($delays[$key] / 100));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $image;
|
return $image;
|
||||||
|
Reference in New Issue
Block a user