Imagick::waveImage

(PECL imagick 2, PECL imagick 3)

Imagick::waveImage β€” Applies wave filter to the image

Опис

public 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 Π² Ρ€Π°Π·Ρ– ΠΏΠΎΠΌΠΈΠ»ΠΊΠΈ.

ΠŸΡ€ΠΈΠΊΠ»Π°Π΄ΠΈ

ΠŸΡ€ΠΈΠΊΠ»Π°Π΄ #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();
}

?>

ΠŸΡ€ΠΎΠ³Π»ΡΠ½ΡŒΡ‚Π΅ Ρ‚Π°ΠΊΠΎΠΆ

οΌ‹add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top