Open rekha-emids opened 3 years ago
i added the tiff.min.js using React Hooks. But when i tried to access Tiff module it's throwing "Cannot find name 'Tiff'. Did you mean 'tiff'" error.
const script = document.createElement('script');
script.src = "https://cdn.rawgit.com/seikichi/tiff.js/master/tiff.min.js"; script.async = true; script.onload = () => scriptLoaded(); document.body.appendChild(script);
var tiff = new Tiff({buffer: event.args.value}); // parse and convert | ^ 121 | var canvas = tiff.toCanvas();
do not use this library.. It has memory leak issues. will consume your whole server memory when you put your application to prod.
i added the tiff.min.js using React Hooks. But when i tried to access Tiff module it's throwing "Cannot find name 'Tiff'. Did you mean 'tiff'" error.
const script = document.createElement('script');
var tiff = new Tiff({buffer: event.args.value}); // parse and convert | ^ 121 | var canvas = tiff.toCanvas();