[Tex/LaTex] How to create a background image on title page with LaTeX

backgroundstitles

I want to put a background image on a title page of a document. Is it possible and does it work?

EDIT:
The answer by Presidenten using the eso-pic package and my answer found after some research using the wallpaper package both work.

Best Answer

Assuming you have a background file named background.png - Add this code before \begin{document}

\usepackage{eso-pic}
\newcommand\BackgroundPic{%
\put(0,0){%
\parbox[b][\paperheight]{\paperwidth}{%
\vfill
\centering
\includegraphics[width=\paperwidth,height=\paperheight,%
keepaspectratio]{background.png}%
\vfill
}}}

...and this immediately after \begin{document}:

\AddToShipoutPicture*{\BackgroundPic}

The * will make sure that the background picture will only be put on one page.

If you wish to use the picture on multiple pages, skip the *:

\AddToShipoutPicture{\BackgroundPic}

Then use this command to stop using the background picture:

\ClearShipoutPicture