PIL's PDF export dpi

Matthias Bock <[email protected]> Thu, 26 Jan 2012 18:47:49 +0100
Newsgroups gmane.comp.python.image
Message-ID <1327600069.3769.10.camel@localhost>
Dear all,

Python's Imaging Library PIL seems to ignore
image resolution settings, when saving as PDF.

Sample code:

 #!/usr/bin/python2.6
 # -*- coding: iso-8859-15 -*-
 from PIL import Image
 im = Image.open('demo.png')
 im.info['dpi'] = (300,300)
 im.save( 'demo.pdf', **im.info )

The (300,300) statement I added to set the resolution
to 300 dpi, but nevertheless the output PDF only has 72 dpi.

Can anybody help me out here ?

Best, Matthias

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig