HomeImagickImagickDrawImagickPixelImagick Pixel IteratorImagick KernelDevelopmentTutorial Source codeReport an issue
Category
Example

Imagick::raiseImage

← radialBlurImage   randomThresholdImage →
Creates a simulated three-dimensional button-like effect by lightening and darkening the edges of the image. Members width and height of raise_info define the width of the vertical and horizontal edge of the effect.

Example

function raiseImage($image_path, $width, $height, $x, $y, $raise)
{
    $imagick = new \Imagick(realpath($image_path));

    $imagick->raiseImage($width, $height, $x, $y, $raise);
    $imagick->setImageFormat("jpg");
    header("Content-Type: image/jpeg");
    echo $imagick->getImageBlob();
}