Bug Report: JPEG is not identified in ImageReader

19 views
Skip to first unread message

Tamás Makó

unread,
Jul 12, 2024, 4:58:34 AM7/12/24
to reportlab-users
Hi,

I found the following bug in `ImageReader` when opening a PIL JPEG file:
It can be initialized either with filename or PIL image.
In case of filename there's no problem. JPEG is properly identified.
However initializing with PIL image, JPEG is not identified.
(That's simply a missing condition checking if the parameter is PIL image.)

We call `canvas.drawImage(ImageReader(<PIL-JPEG-image>), ...)` and the result is large generated PDF because the image is placed in full size instead of JPEG.

Thanks!
Reply all
Reply to author
Forward
0 new messages