{"id":16608426,"url":"https://github.com/oclero/icoutil","last_synced_at":"2026-05-19T10:39:23.287Z","repository":{"id":218104848,"uuid":"745190145","full_name":"oclero/icoutil","owner":"oclero","description":"🐍 Simple Python library to create .ICO files (Windows icon file format).","archived":false,"fork":false,"pushed_at":"2024-04-22T18:02:00.000Z","size":958,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-01T18:19:11.450Z","etag":null,"topics":["ico","icon","python","windows"],"latest_commit_sha":null,"homepage":"https://github.com/oclero/icoutil","language":"Python","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/oclero.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}},"created_at":"2024-01-18T20:18:46.000Z","updated_at":"2024-08-03T08:12:32.000Z","dependencies_parsed_at":"2024-01-19T19:24:48.070Z","dependency_job_id":"85b2cd0b-2bd8-4905-bf55-b7b516508a22","html_url":"https://github.com/oclero/icoutil","commit_stats":{"total_commits":10,"total_committers":1,"mean_commits":10.0,"dds":0.0,"last_synced_commit":"7197ef46a33d32c8537ef8b5ec9dcf614399bef9"},"previous_names":["oclero/icoutil"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oclero%2Ficoutil","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oclero%2Ficoutil/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oclero%2Ficoutil/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oclero%2Ficoutil/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oclero","download_url":"https://codeload.github.com/oclero/icoutil/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219857423,"owners_count":16556062,"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":["ico","icon","python","windows"],"created_at":"2024-10-12T01:26:09.655Z","updated_at":"2025-10-29T16:32:21.579Z","avatar_url":"https://github.com/oclero.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ca href=\"https://github.com/oclero/icoutil\"\u003e\n\t\u003cimg style=\"margin-bottom: 2em; width: 640px\" src=\"https://raw.githubusercontent.com/oclero/icoutil/master/thumbnail.png\"\u003e\n\u003c/a\u003e\n\u003c/div\u003e\n\n# IcoUtil\n\n[![python](https://img.shields.io/badge/Python-3.9-3776AB.svg?style=flat\u0026logo=python\u0026logoColor=white)](https://www.python.org)\n[![License: MIT](https://img.shields.io/badge/license-MIT-green)](https://mit-license.org/)\n[![PyPi version](https://badgen.net/pypi/v/icoutil/)](https://pypi.org/project/icoutil)\n\nA simple Python library to create `.ico` files (Windows icon file format) from `.png` files.\n\n**Table of contents**\n\n- [Install](#install)\n- [Usage](#usage)\n  - [As a library](#as-a-library)\n  - [As a CLI program](#as-a-cli-program)\n- [Remarks](#remarks)\n- [Creator](#creator)\n- [License](#license)\n\n## Install\n\nUse the [PyPi.org](https://pypi.org/project/icoutil) package index:\n\n```sh\npip3 install icoutil\n```\n\n## Usage\n\n### As a library\n\nTwo ways to use the library:\n\n- Creating a `.ico` file from a single directory that contains multiple `.png` files:\n\n  ```py\n  import icoutil\n\n  ico = icoutil.IcoFile()\n  ico.add_png_dir('path/to/dir')\n  ico.write('output.ico')\n  ```\n\n- Creating a `.ico` file from multiple `.png` files:\n\n  ```py\n  import icoutil\n\n  ico = icoutil.IcoFile()\n  ico.add_png('path/to/image1.png')\n  ico.add_png('path/to/image2.png')\n  ico.add_png('path/to/image3.png')\n  ico.add_png('...')\n  ico.write('output.ico')\n  ```\n\n### As a CLI program\n\nTwo ways to use the CLI:\n\n- Creating a `.ico` file from a single directory that contains multiple `.png` files:\n\n  ```sh\n  icoutil --output \"icon.ico\" \"path/to/dir\"\n  ```\n\n- Creating a `.ico` file from multiple `.png` files:\n\n  ```sh\n  icoutil --output \"icon.ico\" \"path/to/image1.png\" \"path/to/image2.png\" \"path/to/image3.png\" ...\n  ```\n\n## Remarks\n\n- The file specification can be read [here](\u003chttps://en.wikipedia.org/wiki/ICO_(file_format)\u003e).\n- The following sizes are used by Windows, but not all required:\n  - 16×16\n  - 20×20\n  - 24×24\n  - 32×32\n  - 40×40\n  - 48×48\n  - 64×64\n  - 96×96\n  - 128×128\n  - 256×256\n- This library won't consider sizes outside the ones specified above.\n- The maximum allowed size is 256×256 pixels.\n\n## Creator\n\n**Olivier Cléro** | [email](mailto:oclero@pm.me) | [website](https://www.olivierclero.com) | [github](https://www.github.com/oclero) | [gitlab](https://www.gitlab.com/oclero)\n\n## License\n\nThis project is available under the MIT license. See the [LICENSE](LICENSE) file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foclero%2Ficoutil","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foclero%2Ficoutil","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foclero%2Ficoutil/lists"}