{"id":21689688,"url":"https://github.com/cesiumlabs/bitmap","last_synced_at":"2026-05-11T03:44:56.266Z","repository":{"id":62421953,"uuid":"334214090","full_name":"CesiumLabs/bitmap","owner":"CesiumLabs","description":"Bitmap Encoder/Decoder for Deno based on Node's bmp-js.","archived":false,"fork":false,"pushed_at":"2021-01-30T15:44:01.000Z","size":4,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-19T15:38:59.884Z","etag":null,"topics":["bitmap","bmp-js","deno","javascript"],"latest_commit_sha":null,"homepage":"https://deno.land/x/bitmap","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CesiumLabs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-01-29T17:21:35.000Z","updated_at":"2021-01-30T15:44:15.000Z","dependencies_parsed_at":"2022-11-01T17:32:57.356Z","dependency_job_id":null,"html_url":"https://github.com/CesiumLabs/bitmap","commit_stats":null,"previous_names":["devsnowflake/bitmap"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/CesiumLabs/bitmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesiumLabs%2Fbitmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesiumLabs%2Fbitmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesiumLabs%2Fbitmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesiumLabs%2Fbitmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CesiumLabs","download_url":"https://codeload.github.com/CesiumLabs/bitmap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CesiumLabs%2Fbitmap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27670235,"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","status":"online","status_checked_at":"2025-12-11T02:00:11.302Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bitmap","bmp-js","deno","javascript"],"created_at":"2024-11-25T17:27:14.894Z","updated_at":"2025-12-11T21:09:16.327Z","avatar_url":"https://github.com/CesiumLabs.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitmap\nBitmap Encoder/Decoder for Deno based on Node's **bmp-js**.\n\n# Example\n\n```js\n// BitmapBufferAPI = Buffer | Decoder = Bitmap Decoder | Encoder = Bitmap Encoder\nimport { BitmapBufferAPI, Decoder, Encoder } from \"https://deno.land/x/bitmap/mod.ts\";\n\nconst data = Deno.readFileSync(\"./image.bmp\");\nconst decoder = Decoder(BitmapBufferAPI.from(data));\nconst imgData = decoder.data;\n\nfor (let i = 0; i \u003c imgData.length; i += 4) {\n    const brightness = 0.34 * imgData[i] + 0.5 * imgData[i + 1] + 0.16 * imgData[i + 2];\n    imgData[i] = brightness;\n    imgData[i + 1] = brightness;\n    imgData[i + 2] = brightness;\n}\n\nconst bitmap = Encoder({\n    data: imgData,\n    width: decoder.width,\n    height: decoder.height\n});\n\nDeno.writeFileSync(\"./edited.bmp\", bitmap.data);\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesiumlabs%2Fbitmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcesiumlabs%2Fbitmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcesiumlabs%2Fbitmap/lists"}