How to use the utif.replaceIMG 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 DefinitelyTyped / DefinitelyTyped / types / utif / utif-tests.ts View on Github external
import * as UTIF from "utif";

// $ExpectType IFD[]
const IFDs = UTIF.decode(new ArrayBuffer(64));
// $ExpectType Uint8Array
const rgba = UTIF.toRGBA8(IFDs[0]);

// $ExpectType ArrayBuffer
UTIF.encodeImage(rgba, 8, 8);
// $ExpectType ArrayBuffer
UTIF.encode(IFDs);
// $ExpectType void
UTIF.decodeImage(new ArrayBuffer(64), IFDs[0]);
// $ExpectType void
UTIF.replaceIMG();

utif

Fast and advanced TIFF decoder

MIT
Latest version published 5 years ago

Package Health Score

68 / 100
Full package analysis