(PECL imagick 2, PECL imagick 3)
Imagick::waveImage β Applies wave filter to the image
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 Π² ΡΠ°Π·Ρ ΠΏΠΎΠΌΠΈΠ»ΠΊΠΈ.
ΠΡΠΈΠΊΠ»Π°Π΄ #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();
}
?>