HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelTutorial Source codeReport an issue
Category
Example

Flop image

← floodFillPaintImage   forwardFourierTransformImage →
Creates a vertical mirror image by reflecting the pixels around the central y-axis.
function flopImage($image_path)
{
    $imagick = new \Imagick(realpath($image_path));
    $imagick->flopImage();
    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();
}