Imagick::optimizeImageLayers
Removes repeated portions of images to optimize
Description
public bool Imagick::optimizeImageLayers()
Parameters
This function has no parameters.
Return Values
Returns true
on success.
Errors/Exceptions
Throws ImagickException on error.
Examples
Example #1 Using Imagick::optimizeImageLayers
Reading, optimizing and writing a GIF image
<?php
/* create new imagick object */
$im = new Imagick("test.gif");
/* optimize the image layers */
$im->optimizeImageLayers();
/* write the image back */
$im->writeImages("test_optimized.gif", true);
?>
See Also
- Imagick::compareImageLayers
- Imagick::writeImages
- Imagick::writeImage