生成带边框和标签的SVG图标
iconframer的Python项目详细描述
生成带边框、带标签的SVG图标。
功能
- 使用模板框显SVG图标并应用标签(通过gettext进行本地化)
- (可选)转换为PNG(需要pycairo/cairocffi&python rsvg)
- (可选)反转图标(假定图标仅为黑白)
如何使用
创建每个图标一层的svg文件。创建另一个svg用作框架模板。 然后配置设置(参见docs/iconframe.yaml上的配置示例)并运行 生成图标的“iconframer”命令行:
Usage: iconframer (svg | pdf | png) <language> ... [--config=<file>] [--size=<size>] [--nolabel] [--inverse] [--translations=<path>] iconframer -h | --help iconframer --version Options: -i --inverse Inverse the icon colors -n --nolabel Do not generate labeling -t <path> --translations=<path> Specify path of i18n file (locale) structure, by default 'i18n' -s <size> --size=<size> Specify the diameter of the frame for PNG/PDF [default: 64] -c <file> --config=<file> Override config file [default: iconframer.yaml] -h --help Show this screen. -v --version Show version.
类似软件
- svglue
- pyconizr
历史记录
0.3.1(2016-01-18)
- 修复自述文件
0.3.0(2016-01-18)
- 改进文档,小范围清理
- 添加示例配置文件
0.2.0(2016-01-18)
- pypi上的第一个版本。