Make Grayscaled Image

Description: Makes a grayscaled image on the fly.

<?PHP
 
HEADER("content-type: image/jpeg");
$image = imagecreatefromjpeg("image.jpg");
imagefilter($image,IMG_FILTER_GRAYSCALE);
imagejpeg($image);
imagedestroy($image);
 
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.