{"id":16570132,"url":"https://github.com/xnth97/assetkit","last_synced_at":"2025-10-22T21:38:54.316Z","repository":{"id":82730715,"uuid":"445789743","full_name":"xnth97/AssetKit","owner":"xnth97","description":"A command line tool and Swift package for generating image assets for 🍎 platforms.","archived":false,"fork":false,"pushed_at":"2023-10-12T20:58:26.000Z","size":1368,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T20:51:12.245Z","etag":null,"topics":["asset-management","cli","command-line-tool","icon","image-asset","ios","macos","swift","swift-package"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/xnth97.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}},"created_at":"2022-01-08T10:34:29.000Z","updated_at":"2024-07-17T10:23:38.000Z","dependencies_parsed_at":"2023-10-12T18:57:26.418Z","dependency_job_id":null,"html_url":"https://github.com/xnth97/AssetKit","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnth97%2FAssetKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnth97%2FAssetKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnth97%2FAssetKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xnth97%2FAssetKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xnth97","download_url":"https://codeload.github.com/xnth97/AssetKit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238751815,"owners_count":19524642,"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":["asset-management","cli","command-line-tool","icon","image-asset","ios","macos","swift","swift-package"],"created_at":"2024-10-11T21:17:26.323Z","updated_at":"2025-10-22T21:38:54.257Z","avatar_url":"https://github.com/xnth97.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AssetKit\n\nA command line tool and Swift package for generating image assets for Apple platforms.\n\n# GUI\n\n[![](/Images/badge.svg)](https://apps.apple.com/us/app/assetool/id1613455194?l=zh\u0026mt=12)\n\n`Assetool` is a SwiftUI app built on top of `AssetKit`. Free download from Mac App Store.\n\n![](/Images/demo.png)\n\n# CLI\n\n## Installation\n\n### Prebuilt\n\nPlease download prebuilt binaries from [Releases](https://github.com/xnth97/AssetKit/releases).\n\n### Build\n\n1. Clone this repo, `cd` into the base directory.\n2. Run `swift build -c release`.\n3. Binaries are located in `.build/release`.\n\n## Usage\n\nThe CLI `assetool` supports subcommands for generating both `.appiconset` and `.imageset`. Default subcommand is `icon`.\n\n### Icon\n\n```\nassetool \u003cinput\u003e [-o \u003coutput\u003e] [-p \u003cplatforms\u003e] [--universal]\n```\n\n`-o, --output \u003coutput\u003e`: Path of the output folder. If empty, will use current path of terminal.\n\n`-p, --platforms \u003cplatforms\u003e`: Valid values are: `ios`, `mac`, `macos`, `watch`, `watchos`. You can also generate an icon set with multiple platform idioms by sending a string of multiple values separated by comma, e.g. `ios,mac,watch`.\n\n`-u, --universal` Generates single size for iOS and watchOS, suited for newer Xcode.\n\n### Image\n\n```\nassetool image \u003cinput\u003e [-o \u003coutput\u003e] [--width \u003cwidth\u003e] [--height \u003cheight\u003e]\n```\n\n`--width \u003cwidth\u003e` and `--height \u003cheight\u003e`: @1x width or height of the exported image set. If empty, will use the original width/height as @3x size.\n\n### OSX Iconset\n\nThe `osx-iconset` subcommand generates OS X `.iconset` format. See [Icon Set Type](https://developer.apple.com/library/archive/documentation/Xcode/Reference/xcode_ref-Asset_Catalog_Format/IconSetType.html) for details.\n\n```\nassetool osx-iconset \u003cinput\u003e [-o \u003coutput\u003e]\n```\n\n# Package\n\n## Installation\n\n```swift\ndependencies: [\n    .package(url: \"https://github.com/xnth97/AssetKit\", from: \"1.2.1\"),\n],\n```\n\n## Usage\n\n### Icon\n\n```swift\nAssetKit.generateIconSet(\n    inputPath: input,\n    outputPath: output,\n    platforms: [.ios, .mac])\n```\n\n### Image\n\n```swift\nAssetKit.generateImageSet(\n    inputPath: input,\n    outputPath: output,\n    width: width,\n    height: height)\n```\n\n# License\n\nThe project is released under MIT license. Please see [LICENSE](LICENSE) for full terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnth97%2Fassetkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxnth97%2Fassetkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxnth97%2Fassetkit/lists"}