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 image? -Eric.
2008/6/3 Frédéric <[EMAIL PROTECTED]>: > > Le 3/6/2008, "Karsten Hiddemann" <[EMAIL PROTECTED]> 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@python.org > http://mail.python.org/mailman/listinfo/image-sig > -- Eric Clack [EMAIL PROTECTED] Bright Interactive : Successfully delivering interactive websites and business applications http://www.bright-interactive.com/ +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
_______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig