1 Star 0 Fork 42

mslsoftware / devTool

forked from 不灭的小灯灯 / devTool 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

#一键生成ios、安卓各尺寸图标和截屏 一键生成苹果各尺寸的截图和图标

一键生成安卓各尺寸图标和截图

生成图标

生成截图

#运行环境 Python 2.7

安装PIL库

#使用参数 tool.py 操作 [文件名] [平台名] 操作:icon 或 screenshot 文件名:图标文件名 平台名:ios 或 android

例如生成ios的图标:python tool.py icon icon.jpg ios

例如生成安卓的图标:python tool.py icon icon.jpg android

例如生成ios的截屏:python tool.py screenshot ios

例如生成安卓截屏:python tool.py screenshot android

#注意 需要一张mask.png用于裁剪安卓图标,建议使用512*512px,圆角为70px

生成截屏会遍历当前目录下所有jpg和png进行生成,并且自动判断横竖屏

ios图标默认不裁剪圆角,需要的可以自己改代码

当前未加入安卓截屏,因为安卓变化多端,需要的可以自己加

#作者的话 我是个独立开发者,做了七八年了。最近才想起学学Python,学了两三天,写了这个脚本,类似的工具和脚本肯定也有,自己就写着玩玩,喜欢的可以拿去用,如果有更好的建议、更简单的代码,欢迎留言。 winterfeel@qq.com

The MIT License (MIT) Copyright (c) 2016 不灭的小灯灯 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

一键生成ios和安卓各尺寸的截屏和图标 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/jsmth/devTool.git
git@gitee.com:jsmth/devTool.git
jsmth
devTool
devTool
master

搜索帮助

14c37bed 8189591 565d56ea 8189591