I'm trying to annotate a picture, so I start to include it and drawn a red square around it : (file.jpg)
\documentclass[tikz, border=1cm]{standalone}
\usepackage{tikz}
% https://tex.stackexchange.com/questions/219356/how-to-create-a-rectangle-filled-with-image-using-tikz
\usepackage[skins]{tcolorbox}
\begin{document}
\begin{tikzpicture}
% Test 1
\node[anchor=south west, scale=1] at (0,0) {\resizebox{320cm}{180cm}{%
\includegraphics{file.jpg}%
}%
};
% Test 2
%\path[fill stretch image=watermanMin.jpg] (0,0) rectangle (320cm,180cm);
\draw [red] (0,0) rectangle (320cm, 180cm);
\end{tikzpicture}
\end{document}
But it seems that the include picture is larger than 320cm. I have this problem for the 2 solution tested.

Can someone know the way to fix this problem ?
(I have also Dimension too large, but the 3m20 of the picture is smaller than the 5m max size)
file.jpg? Something's not right. – Qrrbrbirlbel Jul 08 '23 at 21:30inner sep = 0pt, outer sep = 0ptfor the node. – Qrrbrbirlbel Jul 08 '23 at 21:33