transicc
v1.2.1
Published
A nodejs wrapper for LittleCMSs transicc command line utility. Easily perform true ICC Profile-based color conversions from inside node.
Maintainers
Readme
node-transicc 
A simple nodejs module that wraps the LittleCMS transicc command line utility, to allow you to make true ICC Profile-based color conversions inside your node apps.
Installation
First, install LittleCMS using the commands below on Unix/Linux/OSX (binaries available for other OSs). It's a small, open source C-based color management system - transicc uses a LittleCMS command line utility by the same name to perform the actual profile comparisons.
git clone https://github.com/mm2/Little-CMS.git
cd Little-CMS
./configure
make
make check
sudo make installNext, you're ready to install the node module...
npm install transicc --save... and start converting colors!
var transicc = require( "transicc" );
transicc( "cmyk", "rgb", [ 100, 0, 0, 0 ], function( err, rgb ){
if ( err ) throw( err );
console.log( rgb ); // same as Photoshop, yo!
});The error parameter in the callback was added in transicc v1.2.0.
Bundled ICC Profiles
Several ICC profiles are bundled with transicc for your convenience. Here's a complete list of the values you can enter into the input or output options of transicc.
CMYK
cmyk(shortcut tocmyk-adobe-us-web-coated-swop)cmyk-adobe-coated-fogra27cmyk-adobe-coated-fogra39cmyk-adobe-coated-gracol2006cmyk-adobe-japan-200-newspapercmyk-adobe-japan-2001-coatedcmyk-adobe-japan-2001-uncoatedcmyk-adobe-japan-2003-web-coatedcmyk-adobe-japan-web-coatedcmyk-adobe-uncoated-fogra29cmyk-adobe-us-web-coated-swopcmyk-adobe-us-web-uncoatedcmyk-adobe-web-coated-fogra28cmyk-adobe-web-coated-swop-2006-g3cmyk-adobe-web-coated-swop-2006-g5cmyk-eci-iso-coated-v2-300cmyk-eci-iso-coated-v2-ecicmyk-eci-iso-uncoated-yellowishcmyk-eci-pso-coated-300-npscreen-iso12647cmyk-eci-pso-coated-npscreen-iso12647cmyk-eci-pso-lwc-improvedcmyk-eci-pso-lwc-standardcmyk-eci-pso-mfc-papercmyk-eci-pso-snp-papercmyk-eci-pso-uncoated-iso12647cmyk-eci-pso-uncoated-npscreen-iso12647cmyk-eci-sc-paper
Lab
lab(shortcut tolab-apple)
RGB
rgb(shortcut torgb-adobe-1998)rgb-adobe-1998rgb-applergb-colormatchrgb-pal-secamrgb-smpte-crgb-video-hdrgb-video-ntscrgb-video-pal
sRGB
srgb(shortcut tosrgb-apple)srgb-apple
XYZ
xyz(shortcut toxyz-d65- the 'standard' luminant associated with daylight)xyz-d50xyz-d55xyz-d65
Note: These profiles are the property of their respective owners, and were copied as-is (simply renamed for easier organization). By using this module, you accept the terms of service agreements associated with their use as provided by Adobe, Apple, ECI, and the ICC.
If there's another ICC profile you'd like bundled with this package, please ensure that the creator of that profile is OK with it being bundled in other software. Once you know that, pull requests away!
