{"id":18879752,"url":"https://github.com/loilo/ico2png-cli","last_synced_at":"2025-04-14T19:30:18.118Z","repository":{"id":14900151,"uuid":"77288305","full_name":"loilo/ico2png-cli","owner":"loilo","description":"🖼 Batch extract PNG images out of ICO files from the command line","archived":false,"fork":false,"pushed_at":"2022-12-07T06:48:09.000Z","size":200,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-14T13:11:27.971Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","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/loilo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-24T15:09:23.000Z","updated_at":"2024-03-25T17:12:19.000Z","dependencies_parsed_at":"2022-07-22T09:32:35.189Z","dependency_job_id":null,"html_url":"https://github.com/loilo/ico2png-cli","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Fico2png-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Fico2png-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Fico2png-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/loilo%2Fico2png-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/loilo","download_url":"https://codeload.github.com/loilo/ico2png-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248945616,"owners_count":21187362,"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-08T06:39:09.090Z","updated_at":"2025-04-14T19:30:18.077Z","avatar_url":"https://github.com/loilo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ico2png-cli\nThis command line utility extracts PNG images from `.ico` files. It's based on the amazing [icojs](https://npmjs.com/package/icojs) library.\n\n## Install\n```console\n$ npm install --global ico2png-cli\n```\n\n*Note:* This tool uses ES2015 features that do require at least Node.js v6.\n\n## Usage\nUsage is dead simple:\n\n```console\n$ ico2png path/to/ico/files\n```\n\nThe given path may either\n\n* be a directory where the script looks for `.ico` files,\n* point to an `.ico` file directly or\n* be a glob string to find `.ico` files in a more advanced way.\n\n*Note:* You might have to put a glob string into quotes if it's containing any asterisks.\n\n### Options\n\nThere are a bunch of options available, you can get them from the built-in help:\n\n```console\n$ ico2png --help\n```\n\n---\n\n**`--out, -o`** [ type: `String` ]\n\nBy default all extracted images will be placed in the folder of their source `.ico` file. Setting this flag will put them all into the given directory.\n\n---\n\n\n**`--name, -n`** [ type: `String`, default: `{file}-{size}.png` ]\n\nA template for the output file names with tokens in curly braces.\n\nAvailable tokens:\n\n* `nr`: Number of the currently exported image, starting with 1\n* `file`: The original file name without file extension\n* `size`: The size of the exported image if it's square, else this equals `{width}-{height}`\n* `width`: The width of the exported image\n* `height`: The height of the exported image\n* `bit`: The bit depth of the exported image\n\n---\n\n**`--override, -r`** [ type: `Boolean`, default: `false` ]\n\nIf this flag is set, existing extracted images with conflicting files names will be overridden.\n\n---\n\n**`--size, -s`** [ type: `Number` ]\n\nRestrict exporting to square icons with the given edge length.\n\n---\n\n**`--width, -w`** [ type: `Number` ]\n\nRestrict exporting to icons with the given width.\n\n---\n\n**`--height, -h`** [ type: `Number` ]\n\nRestrict exporting to icons with the given height.\n\n---\n\n**`--minWidth`** [ type: `Number` ]\n\nRestrict exporting to icons with the given minimum width.\n\n---\n\n**`--maxWidth`** [ type: `Number` ]\n\nRestrict exporting to icons with the given maximum width.\n\n---\n\n**`--minHeight`** [ type: `Number` ]\n\nRestrict exporting to icons with the given minimum height.\n\n---\n\n**`--maxHeight`** [ type: `Number` ]\n\nRestrict exporting to icons with the given maximum height.\n\n---\n\n**`--bit, -b`** [ type: `Number` ]\n\nRestrict exporting to icons with the given bit depth.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floilo%2Fico2png-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Floilo%2Fico2png-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Floilo%2Fico2png-cli/lists"}