View more context

 

dorsetdigital

@sander_ha That's the right way. Just sends the output of the command to a black hole

lpostiglione

Is there any way to calculate programmatically how dark an image is? (Like a value between 0 and 100 0=WHITE 100=BLACK)

dorsetdigital

You can do it with both GD or ImageMagick... so quite probably via Intervention too

dorsetdigital

You just need to set a threshold and then check the image pixels against it

dorsetdigital

Yes, so Intervention has a pickColor() method.. you'd use that