Touch/mouse over to see original View modified in new window.
Image
Amplitude
Length
//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();
}