[Image-SIG] Re: reading JPG metadata with python

Nikolai SAOUKH photo#nms@otdel-1.org
Sun, 1 Dec 2002 20:32:02 +0300


On Sun, Dec 01, 2002 at 05:57:09PM +0100, Fredrik Lundh wrote:
 
| > Having the Pil Handbook not having found any hint; I'm wondering :
| > U might know Perl's Image::Info, anything of the kind in python ?
| 
| it might help if you tell people what "Image::Info" does...
| 
| if all you need know is the size and format, use the "size" and "format"
| attributes of the Image instance:
| 
|     im = Image.open(...)
|     print im.size, im.format
| 
| for more information, check the contents of the "info" dictionary.

perl Image::IPTCInfo allows one to extract image metadata from image file.