Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-19T17:06:58.000Z (almost 6 years ago)
- Last Synced: 2024-10-11T09:26:45.245Z (3 months ago)
- Topics: image-processing, python, python3, svg, triangle, vector
- Language: Python
- Homepage:
- Size: 191 KB
- Stars: 4
- Watchers: 2
- 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 StatusDescription
===========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 trivectorRunning ``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