PHP | imageconvolution() Function (original) (raw)

Last Updated : 11 Jul, 2025

The imageconvolution() function is an inbuilt function in PHP which is used to modify the image content. It applies a 3 x 3 convolution matrix in the image, using the given coefficient and offset. This function returns true on success or false on failure.Syntax:

bool imageconvolution ( image,image, image,matrix, div,div, div,offset )

Parameters: This function accepts four parameter as mentioned above and described below:

Return Value: This function returns True on success or False on failure. Below programs illustrate the imageconvolution() function in PHP:Program 1:

php `

`

Output: image Program 2:

php `

`

Output: image Related Articles:

Reference: https://www.php.net/manual/en/function.imageconvolution.php