(PECL imagick 2, PECL imagick 3)
Imagick::waveImage — Applies wave filter to the image
Applies a wave filter to the image. Questo metodo è disponibile se Imagick è stato compilato con ImageMagick versione 6.2.9 o successive.
amplitudeThe amplitude of the wave.
lengthThe length of the wave.
   Restituisce true in caso di successo.
  
Lancia una ImagickException in caso di errore.
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();
}
?>
