python-pillow/Pillow — pull request #837 by wiredfool (2014-08-03 04:26:55+00:00)
Title: Return Profile with Transformed Images

Adds 2 things to the ImageCms api:

* ImageCmsProfile.tobytes() -- returns the associated profile as a bytes object suitable for saving in images.
* The result images of ImageCms.applyTransform now include the output profile in the `info['icc_profile'[ entry.

Previously there was no good way to get a profile out of ImageCms, including the ones that are created by `createProfile`. This makes it easier to save images with the appropriate profiles by making those profiles easily available.