Hi there, Dralt, welcome to
RP.
For some time now I've been thinking about doing something like that in javascript - I would also be interested to know if this exists.
However.....I'm not sure if I'd do this fully automatic. If you let this go by itself, you'd probably lose the best shots of all. Just because there's a lot of pure black, or pure white doesn't
always mean that the photo is lost.
That's why I'd imagine something semi-automatic - sort of.. look at the image and push a button.
Like I said, interesting to see what other people have to say.
Rô