HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelTutorial Source codeReport an issue
Category
Example

Implode image

← inverseFourierTransformImage   importImagePixels →
Creates a new image that is a copy of an existing one with the image pixels "imploded" by the specified percentage.
function implodeImage($image_path, $implode)
{
    $imagick = new \Imagick(realpath($image_path));
    $imagick->implodeImage($implode);
    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();

}