MWE
Please use the image linked to below.
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{dank}
\end{document}
Oddly enough, only this picture fails and only when compiling with XeTeX (as opposed to pdfTeX or LuaTeX):
ERROR: Dimension too large.
--- TeX said ---
<to be read again>
b
l.5 \includegraphics{dank}
--- HELP ---
From the .log file...
I can't work with sizes bigger than about 19 feet.
Continue and I'll use the largest value I can.
The dank meme itself is a bit of an eyesore, so I'm not displaying it inline. Please check the shasum to make sure it's still the same file when you download it.
$ shasum dank.jpg
b889bc28b2ccd079073267159db0562f45b58e4d dank.jpg
What's special about this image? Why does it fail? Its natural setting (as seen with LuaTeX or pdfTeX) is well under 19 feet.
\includegraphicscommand and an image with a wildly off-base DPI setting, maybe even as low as 1 DPI? – Mike Renfro Oct 16 '15 at 03:33[width=1cm]) – no change. How are you getting the DPI information? – Sean Allred Oct 16 '15 at 03:48scale=1, there are something wrong in the JPG format, that for some reason only is a problem for xetex. If you edit this file with The Gimp an then save it without changes with quality 100%, the problem disappear. – Fran Oct 16 '15 at 06:41