Printing Images through python post

Jody Burgess jody.burgess at sewardconsulting.com
Fri Jul 16 12:13:31 EDT 2004


The example in this post appears to be incomplete,

 -----Original Message-----
> From: Tim Golden 
> Sent: 03 October 2003 09:49
> To: 'Kevin'
> Cc: python-list at python.org
> Subject: RE: Printing images through Python



Is The ratios calculation correct? It does not appear to be complete.

#
# Resize the image to fit the page but not to overflow
#
ratios = [1.0 * printer_resolution[0] / bmp.size[0], 1.0 * 
printer_resolution[1] / bmp.size[1]]
print "ratios =", ratios
scale = min (ratios)
print "scale =", scale

Jody Burgess ISP
Systems Analyst
Seward Consulting Ltd.
780.702.5103
jody.burgess at sewardconsulting.com
 



More information about the Python-list mailing list