[Tex/LaTex] How to make text automatically visible or high contrast in a Beamer presentation with photo backgrounds

backgroundsbeamergraphics

Is there an environment or package I can use to make text always visible on a beamer presentation (with photo backgrounds)? How can one ensure a 'high contrast text colour depending on the background'? (thanks @percusse)

Another way to ask this how can I make the text auto-adjust colour for optimum readability depending on it's surroundings and background?

Let's say I have a photo as a background, how can I make text pixel aware of it's surroundings and have it become lighter on the darker part of an image background and darker on the lighter parts of a background.

In instances where you have a rapid gradient (sharp or sudden white to black), the text should be outlined or some adjustment should be made to keep text readable.

An example might be pulling random photos into as frame backgrounds and not having to worry about self-adjusting and tweaking every frame for readability.

Some have suggested that content should always be the most important thing, which I understand, but that is not the issue here.

An example image (stolen from this page)
enter image description here

It might also be usable if the package specifies ranges so that colour adjustment can happen as in this picture:

enter image description here

Another example would be where we have a black to white (left to right) gradient in a picture. Layering text on this would have the text respond in the opposite gradient direction white to black (left to right). This would make the text readable regardless of where it is.

Is there a way to do this in beamer/LaTeX? Maybe the presentation and visual experts can give me a phrase or a word for what I'm looking for here.

Best Answer

I’d say it is impossible with LaTeX only. At least you must call some other programs in the background but even this will be to complex I guess. So prepare the images with a software like Inkscape or adobe illustrator and export the image with the text as PDF to use it in LaTeX.