How to blur the edges of the image with php?

Hi! How to blur the edges of an image with php ? Only need the edge. Using css do not work, because the photo is added to the background, where not enough of the image to the length of the container. Thanks in advance!

$this->image = imagecreatetruecolor($width, $height); //create photo

Example photo with added background
March 23rd 20 at 18:47
1 answer
March 23rd 20 at 18:49

Find more questions by tags PHP