[Image-SIG] DPI

Samuel Moore blindlemonsam at gmail.com
Fri Apr 16 14:48:38 CEST 2010


I am trying to determine DPI from images. Can anyone help?

I tried:

 

img = Image.open("Hamerkop.jpg")

img.info["dpi"] 

 

but it doesn't work for all jpegs. 

 

Python 2.5.1

PIL 1.1.7

 

Regards,

Sam

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20100416/93bd1717/attachment-0001.html>


More information about the Image-SIG mailing list