Avec l'extension `adjustbox` :
\documentclass{article}
\usepackage{graphicx}
\usepackage[export]{adjustbox}
\begin{document}
X \includegraphics[keepaspectratio=true, height = 1 cm,valign=T]{example-image-a} \includegraphics[height=1cm, valign=T]{example-image-a} X
\end{document}
![alt text][1]
[1]: https://texnique.fr/osqa/upfiles/Screen_Shot_2019-09-27_at_11.32.38.png