[reportlab-users] Compute the "ideal" image size

Lele Gaifax lele at metapensiero.it
Mon Jan 6 07:17:26 EST 2020

Thank you Manasseh!

I ended with a formula like

  (DESIRED_DPI / units.inch) * measure_in_pdf_points

to get the number of pixels to resize the image before embedding in the PDF.

ciao, lele.
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.

More information about the reportlab-users mailing list