mirror of
https://github.com/Intervention/image.git
synced 2025-01-17 12:18:14 +01:00
Add optimizeImageLayers call to GifEncoder
This commit is contained in:
parent
2f2f80cd77
commit
41efb89373
@ -26,6 +26,7 @@ class GifEncoder extends AbstractEncoder implements EncoderInterface
|
|||||||
$imagick->setImageFormat($format);
|
$imagick->setImageFormat($format);
|
||||||
$imagick->setCompression($compression);
|
$imagick->setCompression($compression);
|
||||||
$imagick->setImageCompression($compression);
|
$imagick->setImageCompression($compression);
|
||||||
|
$imagick->optimizeImageLayers();
|
||||||
$imagick = $imagick->deconstructImages();
|
$imagick = $imagick->deconstructImages();
|
||||||
|
|
||||||
return new EncodedImage($imagick->getImagesBlob(), 'image/gif');
|
return new EncodedImage($imagick->getImagesBlob(), 'image/gif');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user