{"id":19320273,"url":"https://github.com/jlyonsmith/ico2pngs","last_synced_at":"2026-06-13T13:33:39.704Z","repository":{"id":57121812,"uuid":"295237000","full_name":"jlyonsmith/ico2pngs","owner":"jlyonsmith","description":"Extract bitmaps from an ICO file into separate PNG files with metadata","archived":false,"fork":false,"pushed_at":"2020-11-13T07:53:33.000Z","size":98,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-23T15:08:24.429Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/jlyonsmith.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-09-13T21:01:33.000Z","updated_at":"2020-11-13T07:53:35.000Z","dependencies_parsed_at":"2022-08-24T14:59:20.524Z","dependency_job_id":null,"html_url":"https://github.com/jlyonsmith/ico2pngs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlyonsmith%2Fico2pngs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlyonsmith%2Fico2pngs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlyonsmith%2Fico2pngs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlyonsmith%2Fico2pngs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlyonsmith","download_url":"https://codeload.github.com/jlyonsmith/ico2pngs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240421556,"owners_count":19798593,"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":[],"created_at":"2024-11-10T01:28:05.267Z","updated_at":"2026-06-13T13:33:34.661Z","avatar_url":"https://github.com/jlyonsmith.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ico2pngs\n\nExtract the bitmaps from a `.ico` file and convert them to `.png` files. \n\n## Highlights\n\n- Converts each image in the `.ico` file into `.png` data\n- Returns png data in a buffer, width, height \u0026 bits per pixel\n- Works in Node.js and in a browser\n\n## Install \n\n```sh\nnpm install @johnls/ico2pngs\n```\n\n## Usage\n\nIn Node.js:\n\n```js\nimport { ico2pngs } from \"ico2pngs\"\nimport fsPromise from \"fs/promises\"\n\n;(async function () {\n  var buf = await fsPromise.readFile(\"test/favicon.ico\")\n  var pngs = ico2pngs(buf.buffer)\n\n  console.log(\n    `width: ${pngs[0].width}, height: ${pngs[0].height}, bitsPerPixel: ${pngs[0].bitsPerPixel}`\n  )\n  await fsPromise.writeFile(\"scratch/favicon0.png\", pngs[0].pngData)\n})()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlyonsmith%2Fico2pngs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlyonsmith%2Fico2pngs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlyonsmith%2Fico2pngs/lists"}