Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
[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]
};
}
},