
很明显,自动化过程不关心像素拟合或类似细节.但对于我们大多数人来说,简单的AppleScript应该可以解决问题.
以下屏幕显示了所需的所有尺寸:
我收集了不同的资料并制作了一个简单的工作脚本供大家分享……所以你去了 – 只需查看下面的答案.
解决方法 这是一个简单的AppleScript,适合所有人…随意适应和使用它:on run set f to choose file processthefiles({f})end runon open thefiles processthefiles(thefiles)end openon processthefiles(thefiles) tell application "Image Events" to launch repeat with f in thefiles set thisfile to f as text -- iPhone scaleAndSave(f,thisfile,29 * 1,"-iPhone-29") scaleAndSave(f,29 * 2,"-iPhone-29@2x") scaleAndSave(f,40 * 2,"-iPhone-40@2x") scaleAndSave(f,57 * 1,"-iPhone-57") scaleAndSave(f,57 * 2,"-iPhone-57@2x") scaleAndSave(f,60 * 2,"-iPhone-60@2x") -- iPad scaleAndSave(f,"-iPad-29") scaleAndSave(f,"-iPad-29@2x") scaleAndSave(f,40 * 1,"-iPad-40") scaleAndSave(f,"-iPad-40@2x") scaleAndSave(f,50 * 1,"-iPad-50") scaleAndSave(f,50 * 2,"-iPad-50@2x") scaleAndSave(f,72 * 1,"-iPad-72") scaleAndSave(f,72 * 2,"-iPad-72@2x") scaleAndSave(f,76 * 1,"-iPad-76") scaleAndSave(f,76 * 2,"-iPad-76@2x") end repeat tell application "Image Events" to quitend processthefileson scaleAndSave(aPath,afile,aSize,aname) set savePath to text 1 thru -5 of afile & aname & text -4 thru -1 of afile tell application "Image Events" set a to open aPath scale a to size aSize save a in savePath end tell delay 0.2end scaleAndSave 这与文件相同…只需下载,保存,双击并运行:https://dl.dropboxusercontent.com/u/170740/AppIcon.applescript
我希望,这可以节省你一些时间……
总结以上是内存溢出为你收集整理的如何扩展不同大小的iOS应用程序图标全部内容,希望文章能够帮你解决如何扩展不同大小的iOS应用程序图标所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)