Let's say I have a bunch of images, (two in this MWE)
\begin{figure}[h]
\begin{subfigure}{\linewidth}
\includegraphics[width=.95\linewidth]{whacknot}
\caption{Fritz-Qualdor count of greezable whacknotters}
\end{subfigure}
\begin{subfigure}{\linewidth}
\includegraphics[width=.95\linewidth]{qualprift}
\caption{Corrected null-count of pre-groused qualprifters}
\end{subfigure}
\caption{Counting methods used in theta-analysis}
\end{figure}
Sure enough, I now have two images underneath each other of the same size. However, what I actually want is to have two images of exactly the same scale, but both at most .95\linewidth (the images are generated programatically, but due to overzealous cropping, they all have a slightly different size). I could of course manually twiddle with a [scale=something] on all the figures, but that Is there a way to do this automatically in LaTeX?

0.95\linewidth? – erik May 24 '19 at 21:20