{"id":13901329,"url":"https://github.com/image-js/tiff","last_synced_at":"2025-04-05T11:04:24.867Z","repository":{"id":46224882,"uuid":"42768813","full_name":"image-js/tiff","owner":"image-js","description":"TIFF image decoder written entirely in JavaScript","archived":false,"fork":false,"pushed_at":"2024-04-08T08:24:33.000Z","size":14031,"stargazers_count":176,"open_issues_count":8,"forks_count":17,"subscribers_count":13,"default_branch":"main","last_synced_at":"2024-04-14T09:45:31.949Z","etag":null,"topics":["image","image-decoder","javascript","nodejs","tiff"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/image-js.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-09-19T10:23:55.000Z","updated_at":"2024-05-21T09:58:31.246Z","dependencies_parsed_at":"2024-01-16T22:22:08.645Z","dependency_job_id":"81131aa3-8e12-4318-b738-ab615e8bf584","html_url":"https://github.com/image-js/tiff","commit_stats":{"total_commits":118,"total_committers":8,"mean_commits":14.75,"dds":0.2966101694915254,"last_synced_commit":"1e543c88df906f551876ed8d71f3763fc6726285"},"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Ftiff","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Ftiff/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Ftiff/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/image-js%2Ftiff/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/image-js","download_url":"https://codeload.github.com/image-js/tiff/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247325695,"owners_count":20920714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["image","image-decoder","javascript","nodejs","tiff"],"created_at":"2024-08-06T21:01:12.344Z","updated_at":"2025-04-05T11:04:24.779Z","avatar_url":"https://github.com/image-js.png","language":"TypeScript","readme":"\u003ch3 align=\"center\"\u003e\n  \u003ca href=\"https://www.zakodium.com\"\u003e\n    \u003cimg src=\"https://www.zakodium.com/brand/zakodium-logo-white.svg\" width=\"50\" alt=\"Zakodium logo\" /\u003e\n  \u003c/a\u003e\n  \u003cp\u003e\n    Maintained by \u003ca href=\"https://www.zakodium.com\"\u003eZakodium\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/h3\u003e\n\n# tiff\n\n[![NPM version][npm-image]][npm-url]\n[![npm download][download-image]][download-url]\n[![test coverage][codecov-image]][codecov-url]\n[![license][license-image]][license-url]\n\nTIFF image decoder written entirely in TypeScript.\n\n## Installation\n\n```console\nnpm i tiff\n```\n\n## Compatibility\n\n### [TIFF standard](./TIFF6.pdf)\n\nThe library can currently decode greyscale and RGB images (8, 16 or 32 bits).\nIt supports LZW compression and images with an additional alpha channel.\n\n### Extensions\n\nImages compressed with Zlib/deflate algorithm are also supported.\n\n## API\n\n### `tiff.decode(data[, options])`\n\nDecodes the file and returns TIFF IFDs.\n\n#### IFD object\n\nEach decoded image is stored in an `IFD`.\n\n##### IFD#data\n\nThe `data` property is a Typed Array containing the pixel data. It is a\n`Uint8Array` for 8bit images, a `Uint16Array` for 16bit images and a\n`Float32Array` for 32bit images.\n\n##### Other properties of IFD\n\n- `size` - number of pixels\n- `width` - number of columns\n- `height` - number of rows\n- `bitsPerSample` - bit depth\n- `alpha` - `true` if the image has an additional alpha channel\n- `xResolution`\n- `yResolution`\n- `resolutionUnit`\n\n### `tiff.pageCount(data)`\n\nReturns the number of IFDs (pages) in the file.\n\n### `tiff.isMultiPage(data)`\n\nReturns true if the file has 2 or more IFDs (pages) and false if it has 1.\nThis is slightly more efficient than calling `pageCount()` if all you need to\nknow is whether the file has multiple pages or not.\n\n## License\n\n[MIT](./LICENSE)\n\n[npm-image]: https://img.shields.io/npm/v/tiff.svg\n[npm-url]: https://www.npmjs.com/package/tiff\n[download-image]: https://img.shields.io/npm/dm/tiff.svg\n[download-url]: https://www.npmjs.com/package/tiff\n[codecov-image]: https://img.shields.io/codecov/c/github/image-js/tiff.svg\n[codecov-url]: https://app.codecov.io/gh/image-js/tiff\n[license-image]: https://img.shields.io/npm/l/tiff.svg\n[license-url]: https://github.com/image-js/tiff/blob/main/LICENSE\n","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimage-js%2Ftiff","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimage-js%2Ftiff","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimage-js%2Ftiff/lists"}