Skip to content

yoya/lcms.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lcms.js

JavaScript Little-CMS powered by emscripten

usage

<script type="text/javascript" src="lcms-wrapper.js"> </script>
<script type="text/javascript" src="bin/lcms.js"> </script>

<script>
var profile = cmsCreate_sRGBProfile();
var text = cmsGetProfileInfoASCII(profile,
                                  cmsInfoDescription, "en", "US");
var rXYZ = cmsReadTag_XYZ(profile, cmsSigRedColorantTag);
var rxyY = cmsXYZ2xyY(rXYZ);

console.log(text);
console.log(rXYZ, rxyY);
</script>

demo

Releases

No releases published

Packages

No packages published

Languages