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

Robin Becker robin at reportlab.com
Mon Jan 6 07:49:13 EST 2020


On 06/01/2020 12:17, Lele Gaifax wrote:
> 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.
> 
If people will magnify the PDF then higher densities are worth while to avoid pixellation.

-- 
Robin Becker


More information about the reportlab-users mailing list