(PECL imagick 2.0.0)
Imagick::waveImage — Applies wave filter to the image
$amplitude
, float $length
) : boolApplies a wave filter to the image. Această metodă este disponibilă dacă Imagick a fost compilat cu ImageMagick de versiunea 6.2.9 sau ulterior.
amplitudeThe amplitude of the wave.
lengthThe length of the wave.
Întoarce TRUE în caz de succes.
Emite ImagickException în caz de eroare.
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();
}
?>