icon_set_generator
一个简单的CLI工具,可以轻松为您的下一个应用程序生成图标集。
安装
-
克隆仓库并将
bin/icon_set_generator.exe添加到 PATHgh repo clone POWRFULCOW89/icon_set_generator
或者
-
获取 pub 包
dart pub add icon_set_generator
并从源代码构建
dart compile exe .\bin\icon_set_generator.dart
或者
-
获取一个预构建的 二进制文件。
用法
icon_set_generator image.extension [-e] [-o] [-s] [-a] [-w] [-h]
-e, --extension option: Extension to convert the set to.
-o, --output option: Output directory.
-s, --set option: Custom set of sizes
-a, --apple flag: Generate icon sets for Apple apps.
-w, --windows10 flag: Generate icon sets for Windows 10 apps.
-h, --help flag: Shows the CLI usage.
示例
-
从
favicon.png输出一个标准集icon_set_generator favicon.png
-
从
logo.jpg输出标准、Apple 和 Windows 10 集icon_set_generator logo.jpg -a -w
-
从
image.gif输出自定义大小集到samples文件夹,格式为ICOicon_set_generator image.gif -o samples --set "[10, 20, 30]" -e ico