Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blackbeam/tiff-multipage


https://github.com/blackbeam/tiff-multipage

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

## tiff-multipage
Tool to merge multiple TIFF files into one.

### Requirements:
1. libtiff (tested on v4).

### Installation:
```bash
npm install tiff-multipage
```

### Usage example:
```javascript
let mp = require('tiff-multipage');

let output_path = './output/OUT.TIFF';

let input_paths = ['./input/INPUT1.TIFF',
'./input/INPUT2.TIFF',
'./input/INPUT3.TIFF'];

// Async version
mp.JoinAsync(output_path, input_paths, function (err) {
if (err) console.log(err);
});

// Sync version
try {
mp.joinSync(output_path, input_paths);
} catch (err) {
console.error(err);
}
```