Re: Error when including image with bogus resolution

Max Chernoff via pdftex <[email protected]> Tue, 11 Feb 2025 01:55:44 -0700
Newsgroups gmane.comp.tex.pdftex
Message-ID <[email protected]>
--=-QTMszY2a+ARnlZ/2ff8l
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hi Akira,

On Mon, 2025-02-10 at 00:41 +0900, Akira Yokosawa wrote:
> I have installed and started testing TeXLive 2025 pretest.
>
> I got a ton of new warning messages from pdfTeX, an example of which
> looks like this:
>
> -------------------------------------------------------------
> pdfTeX warning (ext1): too small image resolution ignored       <-- new w=
arning
> <SMPdesign/clockfreq.pdf, id=3D2971, 239.89626pt x 211.79124pt>
> File: SMPdesign/clockfreq.pdf Graphic file (type pdf)
> <use SMPdesign/clockfreq.pdf>
> Package pdftex.def Info: SMPdesign/clockfreq.pdf  used on input line 345.
> (pdftex.def)             Requested size: 239.89566pt x 211.79073pt.
> -------------------------------------------------------------
>
> Is there any possibility this has something to do with the fix of jpg ima=
ge
> inclusion?

Yes, indeed, I forgot to handle the case where an included image has no
resolution data at all (which is the case for all PDFs). I've attached a
patch that fixes this, hopefully without creating any new problems this
time.

Thanks,
-- Max

--=-QTMszY2a+ARnlZ/2ff8l
Content-Disposition: inline; filename="pdftex-small-resolution-fix.patch"
Content-Type: text/x-patch; name="pdftex-small-resolution-fix.patch"; charset="UTF-8"
Content-Transfer-Encoding: base64

ZGlmZiAtLWdpdCBhL3RleGsvd2ViMmMvcGRmdGV4ZGlyL3BkZnRleC53ZWIgYi90ZXhrL3dlYjJj
L3BkZnRleGRpci9wZGZ0ZXgud2ViCmluZGV4IGM0NjNjMTQyLi41MWRjOWM2NSAxMDA2NDQKLS0t
IGEvdGV4ay93ZWIyYy9wZGZ0ZXhkaXIvcGRmdGV4LndlYgorKysgYi90ZXhrL3dlYjJjL3BkZnRl
eGRpci9wZGZ0ZXgud2ViCkBAIC0zNDQ1MSw3ICszNDQ1MSwxMSBAQCBiZWdpbgogICAgIGVuZDsK
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