npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

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.

Downloads

33

Readme

node-transicc NPM version

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 install

Next, 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 to cmyk-adobe-us-web-coated-swop)
  • cmyk-adobe-coated-fogra27
  • cmyk-adobe-coated-fogra39
  • cmyk-adobe-coated-gracol2006
  • cmyk-adobe-japan-200-newspaper
  • cmyk-adobe-japan-2001-coated
  • cmyk-adobe-japan-2001-uncoated
  • cmyk-adobe-japan-2003-web-coated
  • cmyk-adobe-japan-web-coated
  • cmyk-adobe-uncoated-fogra29
  • cmyk-adobe-us-web-coated-swop
  • cmyk-adobe-us-web-uncoated
  • cmyk-adobe-web-coated-fogra28
  • cmyk-adobe-web-coated-swop-2006-g3
  • cmyk-adobe-web-coated-swop-2006-g5
  • cmyk-eci-iso-coated-v2-300
  • cmyk-eci-iso-coated-v2-eci
  • cmyk-eci-iso-uncoated-yellowish
  • cmyk-eci-pso-coated-300-npscreen-iso12647
  • cmyk-eci-pso-coated-npscreen-iso12647
  • cmyk-eci-pso-lwc-improved
  • cmyk-eci-pso-lwc-standard
  • cmyk-eci-pso-mfc-paper
  • cmyk-eci-pso-snp-paper
  • cmyk-eci-pso-uncoated-iso12647
  • cmyk-eci-pso-uncoated-npscreen-iso12647
  • cmyk-eci-sc-paper

Lab

  • lab (shortcut to lab-apple)

RGB

  • rgb (shortcut to rgb-adobe-1998)
  • rgb-adobe-1998
  • rgb-apple
  • rgb-colormatch
  • rgb-pal-secam
  • rgb-smpte-c
  • rgb-video-hd
  • rgb-video-ntsc
  • rgb-video-pal

sRGB

  • srgb (shortcut to srgb-apple)
  • srgb-apple

XYZ

  • xyz (shortcut to xyz-d65 - the 'standard' luminant associated with daylight)
  • xyz-d50
  • xyz-d55
  • xyz-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!