[Image-SIG] Writing EXIF in JPEGs

mike krimerman hemkond at yahoo.com
Sat Sep 18 19:23:31 CEST 2004


Attached is a zip file containing some modifications
to PIL-1.1.5a4 for writing EXIF into JPEGS.
The EXIF data is supplied as an array of bytes and not
interpreted or checked for validity.

This should be useful for manipulating digital-camera
images and storing them without losing the EXIF
header.

Typical usage example:

im = Image.open(infile)
rawExif = im.info['exif']
#do stuff...
im.save(outfile, "JPEG", exif = rawExif)

There is also a nice EXIF handing module (unrelated to
PIL) which can be used to extract info from the
header.


Mike.


		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages!
http://promotions.yahoo.com/new_mail 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: WriteRawExif-1.1.5a4.zip
Type: application/x-zip-compressed
Size: 10889 bytes
Desc: WriteRawExif-1.1.5a4.zip
Url : http://mail.python.org/pipermail/image-sig/attachments/20040918/90cdd5e6/WriteRawExif-1.1.5a4.bin


More information about the Image-SIG mailing list