@cpp.js/package-tiff
v1.0.0-beta.25
Published
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
Downloads
456
Maintainers
Readme
@cpp.js/package-tiff
Precompiled tiff library built with cpp.js for seamless integration in JavaScript, WebAssembly and React Native projects.
Integration
Start by installing these package with the following command:
npm install @cpp.js/package-tiff
To enable the library, modify the cppjs.config.js file as shown below.
+import tiff from '@cpp.js/package-tiff/cppjs.config.js';
export default {
dependencies: [
+ tiff
]
paths: {
config: import.meta.url,
}
};
Usage
Below are the steps to use the tiff in your C++ or JavaScript code.
Usage in C++ Code
+#include <tiffio.h>
std::string Native::sample() {
+ return std::string(TIFFGetVersion());
}
License
This project includes the precompiled tiff library, which is distributed under the libtiff License.
Tiff Homepage: https://libtiff.gitlab.io/libtiff/index.html