A minimalistic module to utilize Little CMS (http://littlecms.com) to apply color profiles to 16 bit TIFF images
Project description
Python Little CMS
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
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file lcms-0.3.0.tar.gz
.
File metadata
- Download URL: lcms-0.3.0.tar.gz
- Upload date:
- Size: 11.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97c3a2e0200f2ff32f5a9b2870b0fd9faf24ffc31b179b5f514c6cd4d1d5aa58 |
|
MD5 | a6898e08bdc7af2b5916fff0a50631bb |
|
BLAKE2b-256 | d0b990059be08b3b5043c3b81b8ad626068452af3158ab0dc40c3201f053827e |