Imagick::waveImage

(PECL imagick 2.0.0)

Imagick::waveImageApplies wave filter to the image

说锟斤拷

Imagick::waveImage ( float $amplitude , float $length ) : bool

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

?>