Friday, October 17, 2025
HomeLanguagesPHP | Imagick radialBlurImage() Function

PHP | Imagick radialBlurImage() Function

The Imagick::radialBlurImage() function is an inbuilt function in PHP that is used to create radial blur images. 

Syntax:

bool Imagick::radialBlurImage( $angle, $channel )

Parameters: This function accepts two parameters as mentioned above and described below:

  • $angle: This parameter stores the value of the angle.
  • $channel: This parameter provides the channel constant that is valid for channel mode. More than one channel can be combined using a bitwise operator. The default channel in the Imagick function is Imagick::CHANNEL_DEFAULT.

Return Value: This function returns True on success. 

Original Image: 

The below programs illustrate the Imagick radialBlurImage() function in PHP: 

Program 1: 

php




<?php
 
// require_once('path/vendor/autoload.php');
 
// Set header content
header('Content-type: image/png');
 
// Create new Imagick Object
$image = new Imagick(
 
// Use radialBlurImage function
$image->radialBlurImage(5);
 
// Display output image
echo $image;
?>


Output: 

Program 2: 

php




<?php
 
// require_once('path/vendor/autoload.php');
 
// Create new Imagick Object
$imagick = new Imagick('img/neveropen.png');
 
// Use radialBlurImage function
$imagick->radialBlurImage(6, 10);
 
// Function to write image
$imagick->writeImage('radialBlurImage1.png');
 
// Destroy Imagick object
$imagick->destroy();
?>


Output: 

Radial Blur Image

Reference: http://php.net/manual/en/imagick.radialblurimage.php

Whether you’re preparing for your first job interview or aiming to upskill in this ever-evolving tech landscape, neveropen Courses are your key to success. We provide top-quality content at affordable prices, all geared towards accelerating your growth in a time-bound manner. Join the millions we’ve already empowered, and we’re here to do the same for you. Don’t miss out – check it out now!
RELATED ARTICLES

Most Popular

Dominic
32361 POSTS0 COMMENTS
Milvus
88 POSTS0 COMMENTS
Nango Kala
6728 POSTS0 COMMENTS
Nicole Veronica
11892 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11954 POSTS0 COMMENTS
Shaida Kate Naidoo
6852 POSTS0 COMMENTS
Ted Musemwa
7113 POSTS0 COMMENTS
Thapelo Manthata
6805 POSTS0 COMMENTS
Umr Jansen
6801 POSTS0 COMMENTS