{"id":17304684,"url":"https://github.com/moinism/png2icns","last_synced_at":"2025-04-14T13:20:39.033Z","repository":{"id":144425895,"uuid":"71727971","full_name":"moinism/png2icns","owner":"moinism","description":"A command line and nodejs module to convert a .png file to an .icns file.","archived":false,"fork":false,"pushed_at":"2017-08-19T15:56:10.000Z","size":3,"stargazers_count":21,"open_issues_count":1,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T05:36:30.994Z","etag":null,"topics":["icns","javascript","macos","nodejs","png"],"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/moinism.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-23T20:30:12.000Z","updated_at":"2023-12-01T07:23:22.000Z","dependencies_parsed_at":null,"dependency_job_id":"26a033d2-54f4-471b-ab4b-8f544bb0a326","html_url":"https://github.com/moinism/png2icns","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moinism%2Fpng2icns","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moinism%2Fpng2icns/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moinism%2Fpng2icns/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moinism%2Fpng2icns/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moinism","download_url":"https://codeload.github.com/moinism/png2icns/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248886334,"owners_count":21177645,"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":["icns","javascript","macos","nodejs","png"],"created_at":"2024-10-15T11:53:38.154Z","updated_at":"2025-04-14T13:20:39.010Z","avatar_url":"https://github.com/moinism.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n[![npm version](https://badge.fury.io/js/png2icns.svg)](https://badge.fury.io/js/png2icns)\n[![License](https://img.shields.io/badge/license-MIT%20License-blue.svg?style=flat)](https://github.com/moinism/png2icns/blob/master/LICENSE)\n\n\n# png2icns\n\n\u003e A command line and nodejs module to convert a .png file to an .icns file. Works on Mac only.\n\nIt expects a `1024*1024` png file to convert. If your files is less in size then skip the maximum size in `options`.\n\nFor example, if your file is `512*512`:\n\nCommand line:\n```bash\n$ png2icns file.png -s 16,32,64,128,256\n```\n\nIn JavaScript:\n```javascript\npng2icns({\n  in: 'file.png',\n  sizes: [16, 32, 64, 128, 256]\n}, function () {\n  console.log('Successfully converted.');\n});\n```\n\n\n\n## Installation\n\n\nFor command line usage:\n\n````bash\nnpm install png2icns -g\n````\n\nTo use programmatically (in NodeJS).\n\n````bash\nnpm install png2icns --save\n````\n\n\n## Usage\n\n\n### Command line\n\nSimply give it path of png file you want to convert.\n\n````bash\n$ png2icns file_to_convert.png\n````\n\n````bash\n$ png2icns file.png\n$ png2icns file.png -o file.icns // file to output as\n$ png2icns file.png -o file.icns -s 16,32,64,128,256,512 // sizes you want in your .icns file\n````\n\n### JavaScript\n\n\n```javascript\nvar png2icns = require('png2icns');\n\npng2icns({\n  in: 'file.png', // required\n  out: 'output.icns' // optional. .icns file name to save the file as. Default: icon.icns\n  sizes: [16, 32, 64, 128, 256, 512] // optional.\n}, function () {\n  console.log('Successfully converted.');\n});\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoinism%2Fpng2icns","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoinism%2Fpng2icns","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoinism%2Fpng2icns/lists"}