This package provides the Tiff library compiled with Cpp.js, enabling fast and efficient image processing using the TIFF format. It is built with Cpp.js to provide cross-platform support, leveraging both WebAssembly (WASM) for web applications and native
npm install @cpp.js/package-tiff-wasm-multithread``sh`
npm install @cpp.js/package-tiff
To enable the library, modify the cppjs.config.js file as shown below.
`diff
+import tiff from '@cpp.js/package-tiff/cppjs.config.js';
export default {
dependencies: [
+ tiff
]
paths: {
config: import.meta.url,
}
};
`
diff
+#include std::string Native::sample() {
+ return std::string(TIFFGetVersion());
}
``Tiff Homepage: https://libtiff.gitlab.io/libtiff/index.html