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

Eric Clack eric at bright-interactive.com
Tue Jun 3 16:30:46 CEST 2008

My knowledge is very limited when it comes to colour profiles, so I might be
describing something that is impossible here, but isn't the colour profile
information just a tag, or piece of metadata that I could copy from image to

2008/6/3 Frédéric <frederic.mantegazza at gbiloba.org>:

> Le 3/6/2008, "Karsten Hiddemann" <mail at karsten.name> a écrit:
> >> 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.
> >
> >Maybe these links are what you are looking for?
> >
> >http://trac.gbiloba.org/ImageCms/
> >http://www.cazabon.com/pyCMS/
> Unfortunally not. ImageCms (based of pyCMS code) can't read/write
> profiles. It can just convert an image from a color space (using a
> source profile) to another one (using a destination profile). But you
> need to provide both profiles.
> I plan to add support to be able to convert using the embedded profile as
> source profile, but it needs to be read in PIL, which is not the case.
> But have a look in this list archives: Florian Höch wrote a patch
> against 1.1.6 to do that. I just tried it, but don't use it in ImageCms
> yet.
> I would love to see such patch included in the official release. And I
> think it could be great to be able to write back profiles too, so it
> could become easy to keep profiles during read/write.
> _______________________________________________
> Image-SIG maillist  -  Image-SIG at python.org
> http://mail.python.org/mailman/listinfo/image-sig

Eric Clack
eric at bright-interactive.com

Bright Interactive : Successfully delivering interactive websites and
business applications
+44 (0) 1273 201 112

Registered in England No. 3865036. VAT Reg. No. 786 6073 86
Registered Office: 12-13 Ship Street, Brighton, East Sussex, BN1 1AD
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20080603/85fa0ad2/attachment.htm>

More information about the Image-SIG mailing list