How to use the utif.decodeImages function in utif

To help you get started, we’ve selected a few utif examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github oliver-moran / jimp / packages / type-tiff / src / index.js View on Github external
[MIME_TYPE]: data => {
      const ifds = UTIF.decode(data);
      const page = ifds[0];
      UTIF.decodeImages(data, ifds);
      const rgba = UTIF.toRGBA8(page);

      return {
        data: Buffer.from(rgba),
        width: page.t256[0],
        height: page.t257[0]
      };
    }
  },

utif

Fast and advanced TIFF decoder

MIT
Latest version published 5 years ago

Package Health Score

68 / 100
Full package analysis