Supported Versions: PHP 5, PHP 7, PHP 8
Applies a filter to an image
imagefilter(GdImage $imageint $filter, array|int|float|bool ...$args): bool
        $amount $this->argument(0)->between(0100)->value(1);



        for (
$i=0$i intval($amount); $i++) {

            
imagefilter($image->getCore(), IMG_FILTER_GAUSSIAN_BLUR);

        }



        return 
true;
    {

        
$level $this->argument(0)->between(-100100)->required()->value();



        return 
imagefilter($image->getCore(), IMG_FILTER_BRIGHTNESS, ($level 2.55));

    }

}
        $blue round($blue 2.55);




        return 
imagefilter($image->getCore(), IMG_FILTER_COLORIZE$red$green$blue);

    }

}
    {

        
$level $this->argument(0)->between(-100100)->required()->value();



        return 
imagefilter($image->getCore(), IMG_FILTER_CONTRAST, ($level * -1));

    }

}
    public function execute($image)

    {

        return 
imagefilter($image->getCore(), IMG_FILTER_GRAYSCALE);

    }

}
    public function execute($image)

    {

        return 
imagefilter($image->getCore(), IMG_FILTER_NEGATE);

    }

}
        if ( ! $mask_w_alpha) {


            
imagefilter($mask->getCore(), IMG_FILTER_GRAYSCALE);

        }
    {

        
$size $this->argument(0)->type('digit')->value(10);



        return 
imagefilter($image->getCore(), IMG_FILTER_PIXELATE$sizetrue);

    }

}