58 Star 136 Fork 42

不灭的小灯灯 / devTool

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
contribute
Sync branch
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
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.

About

一键生成ios和安卓各尺寸的截屏和图标 expand collapse
Python
MIT
Cancel

Releases

No release

Contributors

All

Activities

Load More
can not load any more
Python
1
https://gitee.com/winterfeel/devTool.git
git@gitee.com:winterfeel/devTool.git
winterfeel
devTool
devTool
master

Search