/** * Smooth effect * * @param resource $image Image GD resource * @param int $passes Number of times to apply the filter (1 - 2048) */ public static function smooth($image, $passes = 1) { imagefilter($image, IMG_FILTER_SMOOTH, Helper::smooth($passes)); }