• Stars
    star
    2,455
  • Rank 18,727 (Top 0.4 %)
  • Language
    Objective-C
  • License
    MIT License
  • Created almost 10 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Xcode plugin to automatically generate 2x, 1x image from 3x image for you, or upscale to 3x from 2x

RTImageAssets

Build Status License GitHub stars

Donate

It seems Xcode 8 not supported, here is a Solution, and Here, use at your own risk!

Brief

A 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!

NOTICE

You 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

Features

  • Only generate those missing assets, if you have already set your own @2x image, it does nothing
  • Automaticaly rename those image files under N.imageset to N.png, [email protected], [email protected]
  • Easy to use, don't need ask for your designer's help any more!

New Feature!!!

  • 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 & drop 1024x1024 big icon, and click generate, DONE!

Usage

Iconset

Settings

Setting

Install

From Source

Clone this Repo, build it in Xcode, and restart your Xcode.

From Plugin Manager

Install Package Manager for Xcode, search: RTImageAssets.

Issues

This plugin is NOT fully tested, if you have any problems, please let me know: https://github.com/rickytan/RTImageAssets/issues

Alternatives

Maybe Interested

License

MIT

简介

本项目是一个 Xcode 插件,用来生成 @3x 的图片资源对应的 @2x 和 @1x 版本,只要拖拽高清图到 @3x 的位置上,然后按 Ctrl+Shift+A 即可自动生成两张低清的补全空位。当然你也可以从 @2x 的图生成 @3x 版本,如果你对图片质量要求不高的话。

注意

请将您的 .xcassets 放到与项目名同名的目录下,如 abcd.xcodeproj ,那么放到 abcd 目录下!

特性

  • 只会填补空位,如果你已经设置好了自己的 @2x 图,则不会生成;
  • 自动重命名,保持项目干净(把 N.imageset 下的图片名字改为 N.png [email protected] [email protected] 等);
  • 使用简单,不用再麻烦美术同学缩放了;

新特性!!!

  • 自动生成所有所需的应用程序图标。按 Ctrl+Shift+Option+A 打开 App Icon 窗口,选择 xcasset,再选择 appiconset,拖拽 1024x1024 的大图标到窗口中,点击 generate,完成!

    ***注意:***本插件从 @3x 到 @2x 的缩放保证图片在屏幕上显示的物理尺寸一样,而不是与屏幕比例一样,缩放系数是 1.5,而不是 1242 / 640 = 1.94

Usage

Iconset

设置

Setting

安装

编译安装

下载本项目,在 Xcode 中打开,构建、重启即可。

Plugin Manager 安装

安装 插件管理 插件,搜索:RTImageAssets

问题

此插件还没有经过严格测试,如果你有什么问题,请提出:https://github.com/rickytan/RTImageAssets/issues

其它选择

可能感兴趣

协议

MIT

More Repositories

1

RTRootNavigationController

Implicitly make every view controller has its own navigation bar
Objective-C
2,152
star
2

GPUUtilization

measure GPU hardware utilization on iOS Devices
Objective-C
126
star
3

RTViewAttachment

Attach a custom UIView to text view
Objective-C
47
star
4

RTComponentTableView

A Componentized UITableView implementation
Objective-C
44
star
5

RTIconButton

A Interface Builder configurable UIButton with a image icon
Objective-C
41
star
6

RTTextView

text with emotion editing
Objective-C
30
star
7

RTagCloudView

a UITableView like API tag cloud view
Objective-C
21
star
8

iZJU

iZJU--浙大移动校园客户端
Objective-C
21
star
9

WechatPlaneSwift

微信打飞机 Swift 实现
Swift
19
star
10

RTTinyPNGWebAPIPlugin

A Xcode plugin which calls http://tinypng.com api to minimize image assets
Objective-C
19
star
11

DepthEffectImage

Swift
18
star
12

XPaste

A Xcode Source Extension to power up your text paste abilities
Objective-C
18
star
13

AllCities

中国所有城市与地区json数据
Objective-C
17
star
14

RTBlockCallChecker

A helper utility to check if a block has been called
Objective-C
15
star
15

RTPagedCollectionViewLayout

A paged collection view layout
Objective-C
14
star
16

RTHeadedColumnView

Multi-column content with a common header view
Objective-C
12
star
17

RSlideView

This is a very easy-to-use slide view, which has a UITablview like API, and reusable cell for memory saving.
Objective-C
10
star
18

RTPagingViewController

A simple to use Paging View Controller, a Android ViewPager Implimetation
Objective-C
10
star
19

CLAnimation

a cocos2d-like animation API based on CAAnimation of UIView (not finished yet, can you help me?)
Objective-C
10
star
20

APNGImageSerialization

a warpper of APNG support for iOS
Objective-C
9
star
21

RTDraggableBadge

a drag to clear badge view
Objective-C
8
star
22

Z

浙江大学团委“校园App”参赛项目
Objective-C
8
star
23

FIXiT

Yet another javascript fixing solution for Objective-C
Objective-C
7
star
24

RTNavigationController

A Navigation Controller and A Side Controller
Objective-C
7
star
25

RTPlaceholderTextView

A UITextView with placeholder supported
Objective-C
5
star
26

RTInteractivePush

UINavigationController interactive push support
Objective-C
5
star
27

json-valid

A json data model validate kit for NodeJS
JavaScript
5
star
28

DemoXcodeExtension

A Demo for fast selection of compound statement or block.
Objective-C
5
star
29

libpng-apng

The patched libpng. The Animated Portable Network Graphics (APNG) is an unofficial extension of the Portable Network Graphics (PNG) format. APNG patch provides APNG support to libpng.
C
5
star
30

RTID

A solution for ios device Unique Identifier
Objective-C
4
star
31

QLPDFAsset

Objective-C
4
star
32

iSAM

A copy of [iSAM](https://svn.csail.mit.edu/isam/) compiles on windows
C
4
star
33

iOS7LongShadowDemo

A simple demo to indicate how iOS 7 long shadow can be created with CAReplicatorLayer
Objective-C
3
star
34

Cocoa-Style-OpenGL

Why there are so many fucking MACROs used in OpenGL? Totally no type, and hard to remember, also uneasy to use auto-complete in IDE. Why don't we just wrap them like Apple, say, typedef enum { kTypeType0, kTypeType1} Type, so that we can easily find out what to use ?
C
3
star
35

RTGridView

A light weight grid view
Objective-C
2
star
36

iZJU-v3

iZJU v3.1.3
Objective-C
2
star
37

RTTextField

A drop-in replacement for UITextField with input limitation
Objective-C
2
star
38

UICollectionViewCellAutomaticDimension

Automatic sizing support for UICollectionView
Objective-C
2
star
39

Snooker

A Turbo C snooker
C++
2
star
40

UIAutomationJS

A UIAutomation javascript stub, used for code completion in WebStorm or something else
JavaScript
2
star
41

ChemOrder

有机化学实验室仪器预约
JavaScript
1
star
42

KALOFution

KALOFution
C
1
star
43

LeetCode

My solutions for http://oj.leetcode.com
C++
1
star
44

snooker-java-applet

浙江大学Java的课程作业,代码很烂,基本可玩,仅供参考
Java
1
star
45

RAutoAdjust

Automaticlly adjust position when keyboard pop out, to make it visible
Objective-C
1
star
46

Magnet

1
star
47

cracker

Objective-C++
1
star
48

YahooWeather

As the title, a yahoo weather wrapper
Objective-C
1
star
49

Easay

An App for wareable device
Objective-C
1
star
50

RFolderView

to be finished
Objective-C
1
star
51

YellowPage

浙江大学校园黄页信息抓取及结构化进数据库实现过程
PHP
1
star