[reportlab-users] Image Sizes

John Pywtorak jpywtora at calpoly.edu
Thu Sep 1 13:01:51 EDT 2005


Mark Saward wrote:
> Hi,
> 
> I was wondering what's the best way to determine the size of an image?  I have 
> a text file that specifies data which my python app then uses to create a 
> pdf.  Part of that input text file includes an image name.  Since this could 
> change, I need to know the size of the image in order to center it/lay it out 
> appropriately, and maybe even shrink if it's too large.
> 
> Does reportlab have any functions for this?
> 
> Thanks
> Mark Saward

Also, keep in mind that if you are using platypus it can handle the
layout for you using the Image flowable say within a frame, or table, etc.

-- 
Windows
Start Here
Frustrating Hanging Crashing
Blue Screen of Death
Reboot



More information about the reportlab-users mailing list