Hi Ilya, > I mean "find darkest and lightest pixels of the image and stretch the > brightness range so the first one become black, the second - white". > Photoshop's native "Image/Equalize" does exactly this. I think it's I see! A great food for thought, thanks a lot. Ciao Thomas