生成带框和标签的SVG图标
项目描述
生成带框、带标签的SVG图标。
功能
使用模板对SVG图标进行框选,并应用标签(通过gettext本地化)
可选:转换为PNG(需要pycairo/cairocffi & python-rsvg)
可选:反转图标(假设图标仅是黑白)
如何使用
创建包含每个图标一个层的SVG文件。创建另一个用于框模板的SVG文件。然后配置设置(请参阅docs/iconframer.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)
修复README
0.3.0 (2016-01-18)
改进文档,小幅度清理
添加示例配置文件
0.2.0 (2016-01-18)
在PyPI上首次发布。