Skip to content

thibauts/parse-cube-lut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

parse-cube-lut

Cube LUT (IRIDAS/Adobe) parser

Parses Cube LUT files as defined in the Adobe specification.

LUT files are useful for color grading, encapsulating complex color-space transforms or emulating film stock for photography and video.

Install

$ npm install parse-cube-lut

Usage

var parseCubeLUT = require('parse-cube-lut');
var fs = require('fs');

var buf = fs.readFileSync('fuji400h.cube');
var lut = parseCubeLUT(buf);

console.log(lut);
/*
{ title: 'Fuji 400H LUT',
  type: '3D',
  size: 25,
  domain: [ [ 0, 0, 0 ], [ 1, 1, 1 ] ],
  data: [
    [0, 0, 0],
    ...
  ]
}
*/

About

Cube LUT (IRIDAS/Adobe) parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published