public static function hsla2grayscale($hsla, $method = "rec601") { $hsl = explode(",", $hsla); $a = array_pop($hsl); $hsl = implode(",", $hsl); $hsl = Adjust::hsl2grayscale($hsl, $method); return $hsl . "," . $a; }