PHP | Imagick waveImage() Function Last Updated : 26 Aug, 2019 Comments Improve Suggest changes Like Article Like Report The Imagick::waveImage() function is an inbuilt function in PHP which is used to create the wave filter in an image. This function is available in the version 6.2.9 or newer. Syntax: bool Imagick::waveImage( $amplitude, $length ) Parameters: This function accepts two parameters as mentioned above and described below: $amplitude: This parameter is used to set the amplitude of the wave. $length: This parameter is used to set the length of the wave. Return Value: This function returns True on success. Below programs illustrates the Imagick::waveImage() function in PHP: Program: php <?php // Create an Imagick object $imagick = new Imagick( 'https://media.geeksforgeeks.org/wp-content/uploads/geeksforgeeks-9.png'); // Use waveImage function $imagick->waveImage(5, 20); header("Content-Type: image/jpg"); // Display the output image echo $imagick->getImageBlob(); ?> Output: Related Articles: PHP | Imagick chopImage() Function PHP | Imagick getImageWidth() Function Reference: http://php.net/manual/en/imagick.waveimage.php Comment More infoAdvertise with us Next Article PHP | Imagick waveImage() Function V vijay_raj Follow Improve Article Tags : Misc Web Technologies PHP Image-Processing PHP-function PHP-Imagick +2 More Practice Tags : Misc Similar Reads PHP | Imagick::shaveImage() Function The Imagick::shaveImage() function is an inbuilt function in PHP which is used to shaves pixels from the image edges. It allocates the memory necessary for the new Image structure and returns a pointer to the new image. Syntax: bool Imagick::shaveImage( $columns, $rows ) Parameters: This function ac 1 min read PHP | Imagick writeImage() Function The Imagick::writeImage() function is an inbuilt function in PHP which is used to write an image to the specified filename. This function saves the image file in the same folder where your PHP script is located. Syntax: bool Imagick::writeImage( string $filename = NULL ) Parameters: This function ac 1 min read PHP | Imagick shadeImage() Function The Imagick::shadeImage() function is an inbuilt function in PHP which is used to creates a 3D effect of a given image. Shines a distant light on an image to create a three-dimensional effect. The azimuth is measured in degrees of x-axis and elevation is measured in pixels above the z-axis. Syntax: 1 min read PHP | Imagick readImage() Function The Imagick::readImage() function is an inbuilt function in PHP which is used to read an image from filename. Syntax: bool Imagick::readImage( string $filename ) Parameters:This function accepts a single parameter $filename which holds the name of the file. It can also accept URL of the file. Return 1 min read PHP | Imagick sampleImage() Function The Imagick::sampleImage() function is an inbuilt function in PHP which is used to scale an image to the desired dimensions with pixel sampling.This method does not introduce any additional color into the scaled image like other resizing methods. Syntax: bool Imagick::sampleImage( int $rows, int $co 1 min read Like