im loading an image using
$img = imagecreatefromjpeg(‘image.jpg’);
what i want to do is convert all light pixels to white and all dark pixels to black and then output the image to the page…
can somebody pleeeease guide me on how to do this… ive found hundreds of tutorials of how to greyscale an image but i just want black and white…
pleeeeeeease