I'm attempting to include image files in my LaTeX document whose code is:
\documentclass[a4paper, 11pt]{article}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{microtype}
\usepackage{siunitx}
\usepackage{booktabs}
\usepackage{cleveref}
\usepackage[parfill]{parskip}
\usepackage[none]{hyphenat}
\usepackage{amsbsy}
\usepackage{bm}
\usepackage{float}
\begin{document}
\begin{figure}[h]
\includegraphics[width=0.5\textwidth]{fig1}
\end{figure}
\end{document}
where 'fig1.jpg' is in the same folder as this LaTeX file but still on compiling I'm getting the error 'fig1 not found'.Is there any way this error be rectified and what might be the reason behind this error?