Blur an image in PHP

Sometimes you may needed to blur an image or parts of an image. PHP has several methods to do this which all yield this article showsdifferent results.
Get the size of an image using a PHP function

The getimagesize() function will determine the size of any supported given image file and inside a normal HTML IMG tag and the correspondent HTTP content type.