This question has been asked before here and here, but I am struggling to make things perfectly work.
I am using beamer, but I guess that does not matter.
This is my code:
\usepackage{adjustbox}
\begin{document}
\begin{frame}{How is it used?}
\justifying
\footnotesize
$$f\left(\adjincludegraphics[valign=c,height=1cm]{cat.jpg} \right)$$
\end{frame}
\end{document}
The result is this:
As you can see, the parenthesis are not perfectly aligned with the image. I admit I am being nitpicky, but one of the nice things about LaTeX is that you can afford to be like that. I attached the image I am using for reference here:



\[...\]preferable to$$...$$? – Werner Nov 05 '21 at 00:46