# Is there any recolor feature for imported images in LaTeX?

Is there any feature in LaTeX to recolor a figure which is included in a LaTeX .tex file automatically like the feature which exists in programs like Word? It is a good feature, for instance the person has to bring different logos in his presentation slides and each are in different colors, by this feature he will be able to automatically recolor the logos to suite his presentation theme.

Before Recolor

After Recolor

-
You mean change the color of an external image? Or the color of some words written in LaTeX? –  Manuel Aug 14 at 12:30
Recolor of an external image. –  Enthusiastic Student Aug 14 at 12:30
–  Paul Gessler Aug 14 at 12:38
Look at my answer to Coloring a black and white PDF graphic. –  Paul Gaborit Aug 14 at 14:30
Since TikZ/pgf 3.0, there is also a solution via blend mode... –  Paul Gaborit Aug 14 at 14:32

Here is a possible solution for simple cases using blend mode (logo.png is your first B&W logo):

\documentclass[tikz]{standalone}

\begin{document}
\begin{tikzpicture}
\node{\includegraphics{logo}};
\end{tikzpicture}

\begin{tikzpicture}
\begin{scope}[blend group=lighten];
\begin{scope}[blend group=difference]
\node[inner sep=0,line width=0] (logo) {\includegraphics{logo}};
\fill[black] (logo.south west) rectangle (logo.north east);
\end{scope}
\fill[orange] (logo.south west) rectangle (logo.north east);
\end{scope}
\end{tikzpicture}
\begin{tikzpicture}
\begin{scope}[blend group=lighten];
\begin{scope}[blend group=difference]
\node[inner sep=0,line width=0] (logo) {\includegraphics{logo}};
\fill[black] (logo.south west) rectangle (logo.north east);
\end{scope}
\fill[blue!70] (logo.south west) rectangle (logo.north east);
\end{scope}
\end{tikzpicture}
\end{document}

-

No, it's not possible.

If you want to create a nice logo. You can use PowerPoint and have all its great capabilities. Save single slide as PDF and include the graphic with:

\begin{figure}[htb]
\centering
\includegraphics[width=\textwidth, trim=0cm 4cm 0cm 4cm,clip=true]{images/mylogo.pdf}
\label{fig:mylogo}
\end{figure}


With the option trim you can easily crop the logo and delete white spaces. PDF is a great format, because you keep the lossless resize feature of PowerPoint.

PS: I am using MS Office, but LibreOffice should be just as well.

-