AmuroEita / pillow_svg

SVG Plugin for Pillow

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SVG Plugin for Pillow

A plugin to implement basic SVG read support here for Pillow. Currently supports basic paths, shapes, and text.

Usage

Since SvgImagePlugin is not built-in to Pillow, it must be imported to activate it as a plugin. This only has to happen once per process:

import pillow_svg.SvgImagePlugin
from PIL import Image

svg_image = Image.open('example.svg')
svg_image.show()

Installation

Install via pip:

pip install pillow-svg

Clone the source:

git clone https://github.com/loune/pillow_svg

Authors

  • Loune Lam
  • Glenn Gribble

About

SVG Plugin for Pillow


Languages

Language:Python 99.0%Language:Shell 1.0%