1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-29 16:50:07 +02:00

Add Encoder Options for progressive Jpeg & interlaced GIF format

This commit is contained in:
Oliver Vogel
2024-03-27 15:30:28 +01:00
committed by GitHub
parent c261654599
commit d982359ab8
18 changed files with 203 additions and 39 deletions

View File

@@ -35,4 +35,22 @@ abstract class ImagickTestCase extends BaseTestCase
new Core($imagick)
);
}
public function createTestAnimation(): Image
{
$imagick = new Imagick();
$imagick->setFormat('gif');
for ($i = 0; $i < 3; $i++) {
$frame = new Imagick();
$frame->newImage(3, 2, new ImagickPixel('rgb(255, 0, 0)'), 'gif');
$frame->setImageDelay(10);
$imagick->addImage($frame);
}
return new Image(
new Driver(),
new Core($imagick)
);
}
}