tags:

views:

51

answers:

0

hi, i need to convert cmyk images to rgb in my python app. unfortunately the metadata gets lost in this process.

import Image

path = '/path/to/image.jpg'
im = Image.open(path)
im.convert('RGB').save(path, 'JPEG', quality=95)

thank you for any advice