(PECL imagick 2.0.0)
Imagick::waveImage — Applies wave filter to the image
$amplitude
   , float $length
   )Applies a wave filter to the image. 此方法在Imagick基于ImageMagick 6.2.9以上版本编译时可用。
amplitudeThe amplitude of the wave.
lengthThe length of the wave.
   成功时返回 TRUE。
  
错误时抛出 ImagickException。
Example #1 WaveImage can be quite slow Imagick::waveImage()
<?php
function waveImage($imagePath, $amplitude, $length) {
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->waveImage($amplitude, $length);
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}
?>