Imagick::embossImage
Returns a grayscale image with a three-dimensional effect
Description
public bool Imagick::embossImage(float $radius
, float $sigma
)
Parameters
-
radius
-
The radius of the effect
-
sigma
-
The sigma of the effect
Return Values
Returns true
on success.
Errors/Exceptions
Throws ImagickException on error.
Examples
Example #1 Imagick::embossImage
<?php
function embossImage($imagePath, $radius, $sigma) {
$imagick = new \Imagick(realpath($imagePath));
$imagick->embossImage($radius, $sigma);
header("Content-Type: image/jpg");
echo $imagick->getImageBlob();
}
?>