# 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

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}

• I was completely mind blown by this answer. After finding this question on the available blend groups, I started experimenting a bit. The multiply option was especially useful for me in combination with some color to tint a picture (with white bg) to my non-white background. Am I right, that everything inside a scope will be treated as defined by the blend group so if there is just one thing inside nothing would happen? – gr4nt3d Mar 13 at 17:32
• @gr4nt3d Yes, you are absolutely right. – Paul Gaborit Mar 13 at 23:15

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.