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

F

frankborell

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top