{"id":13684877,"url":"https://github.com/rickytan/RTImageAssets","last_synced_at":"2025-05-01T00:33:42.550Z","repository":{"id":24436889,"uuid":"27838682","full_name":"rickytan/RTImageAssets","owner":"rickytan","description":"A Xcode plugin to automatically generate 2x, 1x image from 3x image for you, or upscale to 3x from 2x","archived":false,"fork":false,"pushed_at":"2018-12-22T10:09:01.000Z","size":2853,"stargazers_count":2455,"open_issues_count":9,"forks_count":333,"subscribers_count":81,"default_branch":"master","last_synced_at":"2024-11-05T03:42:50.199Z","etag":null,"topics":["assets","icons","scale","xcode-plugin"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/rickytan.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}},"created_at":"2014-12-10T20:39:17.000Z","updated_at":"2024-08-25T21:29:06.000Z","dependencies_parsed_at":"2022-08-22T08:10:19.007Z","dependency_job_id":null,"html_url":"https://github.com/rickytan/RTImageAssets","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/rickytan%2FRTImageAssets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickytan%2FRTImageAssets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickytan%2FRTImageAssets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickytan%2FRTImageAssets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rickytan","download_url":"https://codeload.github.com/rickytan/RTImageAssets/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224198008,"owners_count":17271999,"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":["assets","icons","scale","xcode-plugin"],"created_at":"2024-08-02T14:00:40.111Z","updated_at":"2024-11-12T06:30:50.268Z","avatar_url":"https://github.com/rickytan.png","language":"Objective-C","funding_links":[],"categories":["Unofficial","非官方","Objective-C","WebSocket"],"sub_categories":["Plugins","\u003ca name=\"plugins\"\u003e\u003c/a\u003e插件"],"readme":"\nRTImageAssets\n=============\n[![Build Status](https://travis-ci.org/rickytan/RTImageAssets.svg)](https://travis-ci.org/rickytan/RTImageAssets)\n[![License](http://img.shields.io/badge/license-MIT-yellowgreen.svg)](./LICENSE)\n[![GitHub stars](https://img.shields.io/github/stars/rickytan/RTImageAssets.svg?style=social\u0026label=Star)](https://github.com/rickytan/RTImageAssets)\n\n[![Donate](https://www.paypalobjects.com/webstatic/en_US/btn/btn_donate_pp_142x27.png \"Donate me a cup of coffee\")](http://rickytan.cn/donate/ \"Donate me a cup of coffee\")\n\n\n\nIt seems ~~**Xcode 8**~~ not supported, here is a **[Solution](https://github.com/fpg1503/MakeXcodeGr8Again)**, and [Here](https://github.com/inket/update_xcode_plugins), use at your own risk!\n\nBrief\n---\nA Xcode plugin to automatically generate @2x, @1x image from @3x image for you, or upscale to @3x from @2x. As easy as you press `Ctrl+Shift+A`, and **DONE**!\n\n\n_NOTICE_\n---\nYou have to put your `.xcassets` in the folder the same name with the project, which means, if your project is `abc.xcodeproj`, and the assets must be in the `abc` folder\n\n\nFeatures\n---\n- Only generate those missing assets, if you have already set your own @2x image, it does nothing\n- Automaticaly rename those image files under `N.imageset` to `N.png`, `N@2x.png`, `N@3x.png`\n- Easy to use, don't need ask for your designer's help any more!\n\n### _New Feature!!!_\n- **Auto generate all the App icons needed**。press `Ctrl+Shift+Option+A` to open **App Icon** window, choose the  `xcasset`, then the `appiconset` you want to use, drag \u0026 drop **1024x1024** big icon, and click **generate**, DONE!\n\n![Usage](./ScreenCap/usage.gif)\n\n![Iconset](./ScreenCap/iconset-gen.gif)\n\n\nSettings\n---\n![Setting](./ScreenCap/p.png)\n\n\nInstall\n---\n\n### From Source\nClone this Repo, build it in `Xcode`, and restart your `Xcode`.\n\n### From Plugin Manager\nInstall [Package Manager](http://alcatraz.io/) for **Xcode**, search: `RTImageAssets`.\n\n\nIssues\n---\nThis plugin is **NOT** fully tested, if you have any problems, please let me know: \u003chttps://github.com/rickytan/RTImageAssets/issues\u003e\n\n\nAlternatives\n---\n+ [Prepo](http://wearemothership.com/work/prepo/)\n+ [Asset Catalog Creator](https://itunes.apple.com/us/app/asset-catalog-creator-app/id809625456?mt=12)\n\n\nMaybe Interested\n---\n+ [sketch-measure-downloader](https://github.com/rickytan/sketch-measure-downloader): A Chrome extension to download sketch-measure exported asserts as a zip file\n+ [XPaste](https://github.com/rickytan/XPaste): A Xcode extension to power up your code paste ability\n+ [RTComponentTableView](https://github.com/rickytan/RTComponentTableView): A Componentized UITableView implementation\n+ [RTPlaceholderTextView](https://github.com/rickytan/RTPlaceholderTextView): A UITextView with placeholder support\n+ [RTIconButton](https://github.com/rickytan/RTIconButton): A drop-in replacement for UIButton\n+ [RTViewAttachment](https://github.com/rickytan/RTViewAttachment): Attach a custom UIView to text view, based on `NSTextAttachment`\n+ [RTRootNavigationController](https://github.com/rickytan/RTRootNavigationController): Implicitly make every view controller has its own navigation bar\n+ [RTPagedCollectionViewLayout](https://github.com/rickytan/RTPagedCollectionViewLayout): A paged collection view layout\n+ [RTTinyPNGWebAPIPlugin](https://github.com/rickytan/RTTinyPNGWebAPIPlugin): A Xcode plugin which calls \u003chttp://tinypng.com\u003e api to minimize image assets\n+ [RTDraggableBadge](https://github.com/rickytan/RTDraggableBadge): A drag to clear badge view\n\n\nLicense\n---\n**MIT**\n\n\n简介\n---\n本项目是一个 **Xcode** 插件，用来生成 @3x 的图片资源对应的 @2x 和 @1x 版本，只要拖拽高清图到 @3x 的位置上，然后按 `Ctrl+Shift+A` 即可自动生成两张低清的补全空位。当然你也可以从 @2x 的图生成 @3x 版本，如果你对图片质量要求不高的话。\n\n\n_注意_\n---\n请将您的 .xcassets 放到与项目名同名的目录下，如 abcd.xcodeproj ，那么放到 abcd 目录下！\n\n\n特性\n---\n- 只会填补空位，如果你已经设置好了自己的 @2x 图，则不会生成；\n- 自动重命名，保持项目干净（把 N.imageset 下的图片名字改为 `N.png` `N@2x.png` `N@3x.png` 等）；\n- 使用简单，不用再麻烦美术同学缩放了；\n\n### _新特性！！！_\n- **自动生成所有所需的应用程序图标**。按 `Ctrl+Shift+Option+A` 打开 **App Icon** 窗口，选择 `xcasset`，再选择 `appiconset`，拖拽 **1024x1024** 的大图标到窗口中，点击 **generate**，完成！\n\n    ***注意：***本插件从 @3x 到 @2x 的缩放保证图片在屏幕上显示的物理尺寸一样，而不是与屏幕比例一样，缩放系数是 **1.5**，而不是 `1242 / 640 = 1.94`。\n\n![Usage](./ScreenCap/usage.gif)\n\n![Iconset](./ScreenCap/iconset-gen.gif)\n\n\n设置\n---\n![Setting](./ScreenCap/p.png)\n\n\n安装\n---\n\n### 编译安装\n下载本项目，在 `Xcode` 中打开，构建、重启即可。\n\n### `Plugin Manager` 安装\n安装 [插件管理](http://alcatraz.io/) 插件，搜索：`RTImageAssets`。\n\n\n问题\n---\n此插件还没有经过严格测试，如果你有什么问题，请提出：\u003chttps://github.com/rickytan/RTImageAssets/issues\u003e\n\n\n其它选择\n---\n+ [Prepo](http://wearemothership.com/work/prepo/)\n+ [Asset Catalog Creator](https://itunes.apple.com/us/app/asset-catalog-creator-app/id809625456?mt=12)\n\n\n可能感兴趣\n---\n+ [sketch-measure-downloader](https://github.com/rickytan/sketch-measure-downloader): A Chrome extension to download sketch-measure exported asserts as a zip file\n+ [XPaste](https://github.com/rickytan/XPaste): A Xcode extension to power up your code paste ability\n+ [RTComponentTableView](https://github.com/rickytan/RTComponentTableView): A Componentized UITableView implementation\n+ [RTPlaceholderTextView](https://github.com/rickytan/RTPlaceholderTextView): A UITextView with placeholder support\n+ [RTIconButton](https://github.com/rickytan/RTIconButton): A drop-in replacement for UIButton\n+ [RTViewAttachment](https://github.com/rickytan/RTViewAttachment): Attach a custom UIView to text view, based on `NSTextAttachment`\n+ [RTRootNavigationController](https://github.com/rickytan/RTRootNavigationController): Implicitly make every view controller has its own navigation bar\n+ [RTPagedCollectionViewLayout](https://github.com/rickytan/RTPagedCollectionViewLayout): A paged collection view layout\n+ [RTTinyPNGWebAPIPlugin](https://github.com/rickytan/RTTinyPNGWebAPIPlugin): A Xcode plugin which calls \u003chttp://tinypng.com\u003e api to minimize image assets\n+ [RTDraggableBadge](https://github.com/rickytan/RTDraggableBadge): A drag to clear badge view\n\n\n协议\n---\n**MIT**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickytan%2FRTImageAssets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frickytan%2FRTImageAssets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickytan%2FRTImageAssets/lists"}