Hello Frédéric, first, your work on ImageCms is deeply appreciated! Regarding your question, atleast for JPEG and TIFF images I think I know a way. For JPEG, an embedded ICC profile can be accessed as im.app['APP2'] (there's some data before the actual profile data 'ICC_PROFILE\x00\x01\x01' which needs to be stripped I think) For TIFF files, the data is in im.tag[34675] I guess there might be similar ways for the other formats that support embedded profiles (PNG, PDF, any others?), but I didn't look at it thoroughly yet (will do that atleast for PNG).
Regards, Florian Frédéric schrieb: > Hello, > > Is there a way to read ICC tag in images, and extract embedded profiles, > with PIL? If not, do you have any links explaining how to do that? > > Little cms is only able to read a profile from disk or from memory; so I > first need to retreive this profile in the image structure. > > Thanks, > _______________________________________________ > Image-SIG maillist - Image-SIG@python.org > http://mail.python.org/mailman/listinfo/image-sig _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig