We usually write something like
\includegraphics{image}
instead of:
\includegraphics{image.png}
That is, \includegraphics does not usually require a file extension such as .png .pdf .jpg, etc... That is,
Suppose that I have all of the following files in the same directory. Which file will \includegraphics embed?
my_pic.jpg
my_pic.psd
my_pic.png
my_pic.pdf
my_pic.jpeg
my_pic.gif
Document:
\documentclass{minimal}
\begin{document}
\begin{figure}[htpb]
\centering
\includegraphics[width=\linewidth]{my_pic}
\caption{Sunshine and Rainbows}
\Description{summertime}
\end{figure}
\end{document}
! LaTeX Error: Environment figure undefined– David Carlisle Jan 11 '19 at 20:49