Applies a wave filter to the image. Available since 6.2.9
Touch/mouse over to see original View modified in new window.
Image
Amplitude
Length
Applies a wave filter to the image. Available since 6.2.9
Parameters
amplitudefloatThe amplitude of the wave.
lengthfloatThe length of the wave.
//WaveImage can be quite slow

function waveImage($imagePath, $amplitude, $length)
{
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->waveImage($amplitude, $length);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}