I've seen this question asked, but I have not seen an answer that works for me.
I am trying to include screenshots from my program with includegraphics. I have many screenshots -- all of different pixel widths. I would like to be able to include them at the same 'scale' such that text in each remains the same size.
Long ago, I was able to do this with the [scale=0.75] option for includegraphics. This no longer works as it seems includegraphics now ignores the dpi information stored in the PNG file.
The PNG starts at 72dpi (I have changed it in an image editor to 300dpi, no change) and including it with scale=1.0, 0.5, and 0.1 all give identical results -- the image does not scale.
Any help is appreciated.
\documentclass[]{aiaa-tc}
\begin{document}
\begin{figure}
\includegraphics[scale=1.0]{example-image.png}
\end{figure}
\begin{figure}
\includegraphics[scale=0.5]{example-image.png}
\end{figure}
\begin{figure}
\includegraphics[scale=0.1]{example-image.png}
\end{figure}
\end{document}
I am running TeXShop on a Mac using pdftex.
Changing the first few lines...
\documentclass[]{article}
\usepackage{graphicx}
remedies the problem. Of course, I am submitting an AIAA paper, so it would be best to find a solution that works with this class file.
\includegraphics
basically is just a wrapper to the back end driver so the code for say pdftex is completely different to that in xetex or luatex, so it never ignores a scale option it simply passes it on to the back end as a request to scale, but you have given no information about which system you are using.\includegraphics[scale=0.5]{example-image.png}
as that file is generally available for tests.example-image
rather thanimage
people would have been able to run the example and seen the problem.