I am using the \usepackage{subcaption}
library (inspired by this) to create a figure with two images, like so:
\begin{figure}[H]
\centering
\begin{subfigure}{0.45 \linewidth}
\centering
\vfill
\includegraphics{2020.jpg}
\caption{A a $20\times 20$ image in original size.}
\end{subfigure} \hfill
\begin{subfigure}{0.54 \linewidth}
\centering
\includegraphics[height=6cm]{2020.jpg}
\caption{The same images with increased resolution, for illustrative purposes.}
\end{subfigure}
Giving me the following:
How do I vertically align the two images? I.e. I want something like this:
Best Answer
Use
\subcaptionbox{<caption>}[<width>]{<image>}
instead thesubfigure
environments, then you get the desired result, no trickery needed.