public function blur($intensity) {
        $image = $this->owner->getImageResource();
        
        switch($intensity){
            case 'light':
                for ($x=1; $x<=10; $x++)
                    imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR);
            break;
            
            case 'strong':
                for ($x=1; $x<=40; $x++)
                    imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR);
            break;
            
            case 'normal':
            default:
                for ($x=1; $x<=25; $x++)
                    imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR);
            break;
        }
        
        $output = clone $this->owner;
		$output->setImageResource($image);
		return $output;
    }
public function blur($intensity) {
        $image = $this->owner->getImageResource();
        
        switch($intensity){
            case 'light':
                for ($x=1; $x<=10; $x++)
                    imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR);
            break;
            
            case 'strong':
                for ($x=1; $x<=40; $x++)
                    imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR);
            break;
            
            case 'normal':
            default:
                for ($x=1; $x<=25; $x++)
                    imagefilter($image, IMG_FILTER_GAUSSIAN_BLUR);
            break;
        }
        
        $output = clone $this->owner;
		$output->setImageResource($image);
		return $output;
    }
public function blur ( $ intensity ) { $ image = $ this -> owner -> getImageResource ( ) ; switch ( $ intensity ) { case 'light' : for ( $ x = 1 ; $ x <= 10 ; $ x ++ ) imagefilter ( $ image , IMG_FILTER_GAUSSIAN_BLUR ) ; break ; case 'strong' : for ( $ x = 1 ; $ x <= 40 ; $ x ++ ) imagefilter ( $ image , IMG_FILTER_GAUSSIAN_BLUR ) ; break ; case 'normal' : default : for ( $ x = 1 ; $ x <= 25 ; $ x ++ ) imagefilter ( $ image , IMG_FILTER_GAUSSIAN_BLUR ) ; break ; } $ output = clone $ this -> owner ; $ output -> setImageResource ( $ image ) ; return $ output ; }
blur the image
blur the image