[Image-SIG] Embedded ICC profiles
lists+Image_SIG at hoech.org
Fri Feb 22 23:59:05 CET 2008
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
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).
> 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.
> Image-SIG maillist - Image-SIG at python.org
More information about the Image-SIG