DPI

"Samuel Moore" <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <000401cadd63$25d30e50$71792af0$@com>
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

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.