Skip to main content

Generate framed and labelled SVG icons

Project description

Generate framed, labeled SVG icons.


  • Frame SVG icons using a template and apply a label (localized via gettext)

  • Optionally, convert to PNG (requires pycairo/cairocffi & python-rsvg)

  • Optionally, inverse the icon (assumes icon is black & white only)

How to use

Create SVG file with one layer per icon. Create another SVG to use as the frame template. Then configure the settings (see config example at docs/iconframer.yaml) and run the ‘iconframer’ command line to generate icons:


 iconframer (svg | pdf | png) <language> ... [--config=<file>] [--size=<size>] [--nolabel] [--inverse] [--translations=<path>]
 iconframer -h | --help
 iconframer --version


 -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.

Similar software

  • svglue

  • pyconizr


0.3.0 (2016-01-18)

  • Improved docs, minor cleanup

  • Add example config file

0.2.0 (2016-01-18)

  • First release on PyPI.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution (35.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page