PHP | Imagick flopImage() Function Last Updated : 26 Aug, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::flopImage() function is an inbuilt function in PHP which is used to create a horizontal mirror image. Syntax: bool Imagick::flopImage( void ) Parameters: This function does not accept any parameter. Return Value: This function returns True on success. Below programs illustrate the Imagick::flopImage() function in PHP: Program 1: Original Image: php <?php // Create new Imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-15.png'); // Using blueShiftImage function $imagick->flopImage(); header("Content-Type: image/jpg"); echo $imagick->getImageBlob(); ?> Output: Program 2: Original Image: php <?php $string = "Computer Science portal for Geeks!"; // Creating new image of above String // and add color and background $im = new Imagick(); $draw = new ImagickDraw(); // Fill the color in image $draw->setFillColor(new ImagickPixel('green')); // Set the text font size $draw->setFontSize(50); $metrix = $im->queryFontMetrics($draw, $string); $draw->annotation(0, 40, $string); $im->newImage($metrix['textWidth'], $metrix['textHeight'], new ImagickPixel('white')); // Draw the image $im->drawImage($draw); $im->setImageFormat('jpeg'); // using blueShiftImage function $im->flopImage(); header("Content-Type: image/jpg"); echo $im->getImageBlob(); ?> Output: Reference: http://php.net/manual/en/imagick.flopimage.php Comment More infoAdvertise with us Next Article PHP | Imagick flopImage() Function R R_Raj Follow Improve Article Tags : Web Technologies PHP Image-Processing PHP-function PHP-Imagick +1 More Similar Reads PHP | Gmagick flopimage() Function The Gmagick::flopimage() function is an inbuilt function in PHP which is used to create a flopped image. This function creates a mirror image along the y-axis. Syntax: Gmagick Gmagick::flopimage( void )  Parameters: This function does not accept any parameter. Return Value: This function returns fl 1 min read PHP | Imagick flipImage() Function The Imagick::flipImage() function is an inbuilt function in PHP which is used to create an image generated by a mirror-reversal of an original image across a vertical mirror. Syntax: bool Imagick::flipImage( void ) Parameters: This function does not accepts any parameters. Return Value: This functio 1 min read PHP | Imagick cropImage() Function The Imagick::cropImage() function is an inbuilt function in PHP which is used to extracts the region of the image.Syntax:  int Imagick::cropImage( $width, $height, $x, $y ) Parameters: This function accept four parameters as mention above and describe below.  $width: This parameter is used to spec 2 min read PHP | Imagick chopImage() Function The Imagick::chopImage() function is an inbuilt function in PHP which is used to remove the region of an image and trim it. This function accepts the dimension of image and chops the area and the dimension from where the image is to be trim. Syntax: bool Imagick::chopImage( $width, $height, $x, $y ) 1 min read PHP | Imagick addImage() Function The Imagick::addImage() function is an inbuilt function in PHP which is used to adds new image to Imagick object image list. After the operation iterator position is moved at the end of the list. This function adds new image to Imagick object from the current position of the source object. The Imagi 1 min read Like