I looked at SO, but I could not find a single similar question.
After opening the image in PHP, I want to check every pixel, and if their red + green values ββare below 150, I would turn that pixel to white, instead, if the sum is above 150, I would turn it from a pixel to black.
Is it possible?
I tried with imagefilter() , but I can't get it to work properly. Perhaps there are more suitable features.
source share