PIL's PDF export dpi

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

PIL's PDF export dpi

Matthias Bock
Dear all,

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

Sample code:

 # -*- 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  -  [hidden email]