HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Flop image

← floodFillPaintImage   forwardFourierTransformImage →
Creates a vertical mirror image by reflecting the pixels around the central y-axis.

Example

function flopImage($image_path)
{
    $imagick = new \Imagick(realpath($image_path));
    $imagick->flopImage();
    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();
}