(PECL imagick 2.0.0)
Imagick::waveImage — Applies wave filter to the image
$amplitude
, float $length
) : boolApplies a wave filter to the image. �˷�����Imagick����ImageMagick 6.2.9���ϰ汾����ʱ���á�
amplitude
The amplitude of the wave.
length
The 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();
}
?>