Skip to content

LUT (Lookup Table) plugin for CamanJS, is (ca)nvas (man)ipulation library in Javascript. Works with the LUT file, e.g. SONY_EE_Slog2_LC709A.cube

Notifications You must be signed in to change notification settings

dorelljames/camanjs-lut-file

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CamanJS LUT File Plugin

This is a plugin for CamanJS which is a JavaScript library for canvas/image manipulation. The plugin gives CamanJS ability to apply a LUT (Lookup Table) to a canvas image.

To apply a LUT on your canvas, you just need to pass directly the file location of the LUT file. e.g. (test.CUBE) /lut/test.cube

How to use

  • Include bundle.js and caman.lut.js from dist folder in your HTML after including CamanJS' latest bundle.
  • Simply use the lut(lutFile) function like any other CamanJS filter or plugin.
var lutFile = '/lut/test.cube'; // should be accessible in your web server

Caman('#lut-preview', function () {
    this.revert(true); // update the canvas' context
    this.lut(lutFile); // apply LUT
    this.render(); // render back to canvas with ID #lut-preview
});

Other Plugin

CamanJS LUT Plugin - This one works with passing an base 64 data from image as an argument.

Credits

apply-cube-lut - The bundle.js file is a browserified module coming from this awesome work.

About

LUT (Lookup Table) plugin for CamanJS, is (ca)nvas (man)ipulation library in Javascript. Works with the LUT file, e.g. SONY_EE_Slog2_LC709A.cube

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published