原文:http://www.cocoachina.com/bbs/read.php?tid=277187
生成@3x图片对应的@2x和@1x版本--RTImageAssets
- 关键字:Xcode插件,生成图片资源
- 代码类库:其他(Others)
- GitHub链接:https://github.com/rickytan/RTImageAssets
特性
只会填补空位,如果你已经设置好了自己的 @2x 图,则不会生成;
自动重命名,保持项目干净(把 N.imageset 下的图片名字改为 N.png N@2x.png N@3x.png 等);
使用简单,不用再麻烦美术同学缩放了;
注意:本插件从 @3x 到 @2x 的缩放保证图片在屏幕上显示的物理尺寸一样,而不是与屏幕比例一样,缩放系数是 1.5,而不是 1242 / 640 = 1.94。