[pdftex] Error when including image with bogus resolution

Karl Berry karl at freefriends.org
Thu Jan 16 23:20:10 CET 2025


   +resolution_ratio := 226;

Thanks Max. Seems fine to me (Thanh, any comments?), but how did the
magic 226 come about?

Regarding the final comment on
https://tex.stackexchange.com/questions/112911 to ignore the metadata
entirely, that seems too invasive a change in principle.

By the way, I note that LuaTeX gives the similar warning, but then gets
a TeX error handling your test-1.jpg (didn't try the others). In all
those lengthy tex.sx exchanges, I got the impression that luatex was
supposed to be already "fixed" in some way. Evidently not.

$ luatex i.tex # same results with lualatex
This is LuaTeX, Version 1.18.0 (TeX Live 2024) 
[...]
warning  (file test-1.jpg) (readjpg): unusual resolution of 1dpi by 1dpi
warning  (internal): arithmetic number too big
warning  (internal): arithmetic number too big
! Dimension too large.
! Dimension too large.
<recently read> \dimen@ 
[...]

$ cat i.tex
\input graphicx
\includegraphics{test-1.jpg}
\end

Thanks,
Karl


More information about the pdftex mailing list.