PIL: Wiping out metadata on save only on progressive JPG's

frankborell at gmail.com frankborell at gmail.com
Tue Jan 26 08:52:56 EST 2010


Hello,

I've tested on PIL 1.16 and 1.17. Metadata(IPTC and EXIF) are saved
fine when the jpg image is NOT progressive. But when the jpg is
progressive, the metadata gets wiped out. Does anyone have any ideas
on how to preserve?

im = Image.open('progressive jpeg path')

im.save('jpeg path') or
im.save('jpeg path',option={'progression':False,'quality':
60,'optimize':True})

Thanks,
Frank





More information about the Python-list mailing list