Try adjusting brightness automatically

I can't use calise, because I couldn't make it work like I want – even
though it should be what I want. As for other tools I find them to be
too complex. I mean just look at my script!
Open images in eog