[Image-SIG] Anyway to keep ICC profiles intact (e.g. sRGB)?

Eric Clack eric at bright-interactive.com
Sun Jun 1 23:44:10 CEST 2008

Hi there,I've been using PIL for some time now and it works very well to
rescale and watermark images, however recently I've noticed that it doesn't
preserve ICC colour profiles. I have this version (from Image.py):
# 2005-03-28 fl   PIL release 1.1.5

For example:

import Image
i = "/path/to/input_image.jpg"
o = "/path/to/output_i,age.jpg"

im = Image.open(i)

input_image has the sRGB ICC profile, but now output_image has no profile
(confirmed with photoshop).

Is there any way to keep the existing profile, or copy it across so that
save saves it?

Many thanks,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20080601/16450734/attachment.htm>

More information about the Image-SIG mailing list