radius | float | The radius of the effect |
sigma | float | The sigma of the effect |
function embossImage($imagePath, $radius, $sigma) { $imagick = new \Imagick(realpath($imagePath)); $imagick->embossImage($radius, $sigma); header("Content-Type: image/jpg"); echo $imagick->getImageBlob(); }