On 27/07/2021 13:47, Dirk Krause wrote:
> Hello,
>
> is there a test image file available somewhere?
I will ask the original user.
> I'm not involved in graphicx development, but my bmpp program converts
> PNG/JPEG/NetPBM/TIFF to EPS and PDF, intended for use with (pdf)LaTeX.
> I did not know about the 19ft limit for graphics in LaTeX before, so
> it's probably a good idea to make bmpp issue a warning if output is too
> large for use with LaTeX. And a hint to override resolution manually.
The resolution is not the problem, nor the pixel size of the image. It's
the setting labelled "Print Size" in the Image Properties panel in GIMP
was displaying 9398.0 × 12700.0 millimeters when the actual pixel size
of the image was only 370×500px.
LaTeX (well, TeX) has its own warning for an overlong line or overwide
page, so no changes are needed. My suggestion was merely to warn the
user if graphicx used the Print Size values and caused an arithmetic
problem.
> Where can I find a documentation for the 19ft limit?
Any decent book or web site dealing with TeX's dimensions.
The canonical reference is Knuth's _The TeXbook_, Chapter 10
(Dimensions), p.58, last paragraph:
"TeX will not deal with dimensions whose absolute value is 2^{30} sp or
more. In other words, the maximum legal dimension is slightly less than
16384pt. This is a distance of about 18.892 feet (5.7583 meters), so it
won't cramp your style."
Peter