{"_id":"tiff.js","_rev":"1-d7f1a0717ea7fb6663e9bc25195f54fb","name":"tiff.js","description":"tiff.js is a port of the LibTIFF by compiling the LibTIFF C code with Emscripten.","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"tiff.js","description":"tiff.js is a port of the LibTIFF by compiling the LibTIFF C code with Emscripten.","version":"1.0.0","author":{"name":"seikichi"},"bugs":{"url":"https://github.com/seikichi/tiff.js/issues"},"dependencies":{},"devDependencies":{},"files":["tiff.js","tiff.min.js"],"homepage":"https://github.com/seikichi/tiff.js","keywords":["conversion","image","tiff"],"license":"SEE LICENSE IN LICENSE","main":"tiff.min.js","repository":{"type":"git","url":"git+https://github.com/seikichi/tiff.js.git"},"gitHead":"79f19c8cb03a4e71b9046c0bce671d7436b90486","_id":"tiff.js@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"seikichi","email":"seikichi@kmc.gr.jp"},"dist":{"integrity":"sha512-P+ZWp1hcpEIx/Pzuc+REh0+isGXk5kfnFEJKRPq1trMbZW49eD/QGDT8Y4KamIK2ZXU+DcYr47auaO93akVP3A==","shasum":"31696dd884d911ed9a4191e78bd90fb33af948bb","tarball":"https://registry.npmjs.org/tiff.js/-/tiff.js-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPKt/tc0EFHDUS66ciDL10dAYHc8ujdIbvCenDrNLj0gIgZhbsyTAOp8tfT+9+0rlmJVRB+2MY/sSlcC2ne/TRawM="}]},"maintainers":[{"name":"seikichi","email":"seikichi@kmc.gr.jp"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tiff.js-1.0.0.tgz_1502795690033_0.3506856763269752"}}},"readme":"# tiff.js\n\ntiff.js is a port of the LibTIFF by compiling the LibTIFF C code with Emscripten.\n\n## [Demo](http://seikichi.github.io/tiff.js/)\n\n- [views TIFF files](http://seikichi.github.io/tiff.js/basic.html)\n- [views a TIFF file using a web worker](http://seikichi.github.io/tiff.js/worker.html)\n- [views a multipage TIFF file](http://seikichi.github.io/tiff.js/multipage.html)\n\n## Usage\n\nUse tiff.min.js:\n\n```js\nvar xhr = new XMLHttpRequest();\nxhr.responseType = 'arraybuffer';\nxhr.open('GET', \"url/of/a/tiff/image/file.tiff\");\nxhr.onload = function (e) {\n  var tiff = new Tiff({buffer: xhr.response});\n  var canvas = tiff.toCanvas();\n  document.body.append(canvas);\n};\nxhr.send();\n```\n\n## API\n\nsee tiff.d.ts\n\n## Note\n\n- This library does not support JPEG-based compressed TIFF files\n  - I failed to link a JPEG library ... ;-p\n- When you load large tiff file, you will see the error message \"Cannot enlarge memory arrays in asm.js\"\n  - in such case, please call 'Tiff.initialize({TOTAL_MEMORY: ... })' before you create a Tiff instance\n- This JavaScript library uses only some parts of the LibTIFF features\n  - To be more precise, I use following functions only\n  - TIFFOpen, TIFFClose, TIFFGetField, TIFFReadRGBAImage, TIFFSetDirectory, TIFFCurrentDirectory, TIFFReadDirectory\n\n## License\n\nThe LibTIFF is LibTIFF Software License, zlib and additional code are zlib License.\n","maintainers":[{"name":"seikichi","email":"seikichi@kmc.gr.jp"}],"time":{"modified":"2022-05-21T20:19:34.873Z","created":"2017-08-15T11:14:50.315Z","1.0.0":"2017-08-15T11:14:50.315Z"},"homepage":"https://github.com/seikichi/tiff.js","keywords":["conversion","image","tiff"],"repository":{"type":"git","url":"git+https://github.com/seikichi/tiff.js.git"},"author":{"name":"seikichi"},"bugs":{"url":"https://github.com/seikichi/tiff.js/issues"},"license":"SEE LICENSE IN LICENSE","readmeFilename":"README.md"}