lcms

A minimalistic module to utilize Little CMS (http://littlecms.com) to apply color profiles to 16 bit TIFF images


Keywords
16-bit, color-management, color-profiles, icc-profile, python, rgb, tiff-images
License
MIT
Install
pip install lcms==0.3.0

Documentation

Python Little CMS Travis CI build status PyPI version

A minimalistic module to utilize Little CMS to apply color profiles to 16 bit TIFF images.

Motivation

Currently there seems to be no python packages available to apply color profiles to 16 bit TIFF images. Pillow has built in support for Little CMS, but does currently not have 16 bit support for RGB images.

Installation

git submodule update --init
python setup.py bdist_wheel --build-type Release

Then install the wheel present in the dist folder.

Example

To run the example you need a 16 bit TIFF image and a color profile, for example a *.icm file. Then run

python example.py your_image.tif your_profile.icm

and have a look at the generated image your_image-transformed.tif.