I'm trying to align an image (3200x2368) to the top of the page. It is not aligned and I don't know what I can try more than this. Anything I tried doesn't make the picture to align on top and on the left side without any margins. Why is that and how can it be fixed?
\documentclass{article}
\usepackage[a4paper, total={6in, 8in}]{geometry}
\usepackage{graphicx, pgffor}
\usepackage[export]{adjustbox}
\pagenumbering{gobble}
\begin{document}
\pagestyle{empty}%
\noindent
\begin{figure}[t]
\vspace{0pt}
\includegraphics[width=7in,valign=t]{test.jpg}
\caption{Test Caption}
\end{figure}
\end{document}
This is the test image
Ant this is how the document looks like
a4paper, total={6in, 8in}
?? what size do you want the page to be, A4 or 6" by 8" ? either way you specfy the image as 7" wide starting at the left margin.