https://github.com/nklapste/trivector
Convert an image into a SVG vector image composed of triangular sectors.
https://github.com/nklapste/trivector
image-processing python python3 svg triangle vector
Last synced: about 1 year ago
JSON representation
Convert an image into a SVG vector image composed of triangular sectors.
- Host: GitHub
- URL: https://github.com/nklapste/trivector
- Owner: nklapste
- License: mit
- Created: 2018-05-29T21:30:18.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-03-19T17:06:58.000Z (over 7 years ago)
- Last Synced: 2025-04-28T15:08:06.306Z (about 1 year ago)
- Topics: image-processing, python, python3, svg, triangle, vector
- Language: Python
- Homepage:
- Size: 191 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
*********
trivector
*********
.. image:: https://travis-ci.com/nklapste/trivector.svg?branch=master
:target: https://travis-ci.com/nklapste/trivector
:alt: Build Status
.. image:: https://readthedocs.org/projects/trivector/badge/?version=latest
:target: https://trivector.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
Description
===========
Convert an image into a SVG vector image composed of triangular sectors.
Installation
============
trivector can be installed from PyPI with the following command:
.. code-block:: shell
pip install trivector
Usage
=====
To get help on using trivector type the following command:
.. code-block:: shell
trivector --help
Example
-------
Below is a simple PNG raster image to trivectorize!
.. image:: https://raw.githubusercontent.com/nklapste/trivector/master/examples/meface_before.png
:width: 250
:alt: Before trivector
Running ``trivector meface_before.png meface_after.svg 20`` yields the
following trivectorized SVG image at ``meface_after.svg``:
.. image:: https://raw.githubusercontent.com/nklapste/trivector/master/examples/meface_after.svg?sanitize=true
:width: 250
:alt: After trivector