tiff-multipage

Simple synchronous node.js module which utilize libtiff to make one multipage tiff from set of one-paged tiffs.

npm install tiff-multipage
6 downloads in the last week
12 downloads in the last month

tiff-multipage

Simple synchronous node.js module which utilize libtiff to make one multipage tiff from set of one-paged tiffs.

Requirements:

  1. libtiff (tested on v4).

Installation:

npm install tiff-multipage

Usage example:

var tmp = require('tiff-multipage');
var pages = [];
var out = new tmp('/path/to/output.tiff', 'w');

pages.push(new tmp('/path/to/first.tiff', 'r'));
pages.push(new tmp('/path/to/second.tiff', 'r'));
pages.push(new tmp('/path/to/third.tiff', 'r'));
pages.push(new tmp('/path/to/nth.tiff', 'r'));

pages.forEach(out.pushAsPage.bind(out));
npm loves you