(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();
}
?>